屏幕适配

本文详细介绍了不同分辨率下安卓设备的屏幕尺寸与图标大小规范,包括Launcher图标、ActionBar图标等,并推荐了图标和颜色选取的资源。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

屏幕大小

尺寸 px dp
MDPI 480*320 480 * 320
HDPI 960*540 640*360
XHDPI 1280*720 640*360
XXHDPI 1920*1080 640*360
XXXHDPI 2560*1440 730*410 dp

Launcher图标大小

尺寸 px
MDPI 48*48
HDPI 72*72
XHDPI 96*96
XXHDPI 144*144
XXXHDPI 192*192

ActionBar, Dialog,Tab,Menu图标大小

尺寸 px
MDPI 32*32
HDPI 48*48
XHDPI 64*64
XXHDPI 96*96
XXXHDPI 128*128

Notification Bar图标大小

尺寸 px
MDPI 24*24
HDPI 36*36
XHDPI 48*48
XXHDPI 72*72
XXXHDPI 96*96

Contextual图标大小

尺寸 px
MDPI 16*16
HDPI 24*24
XHDPI 32*32
XXHDPI 48*48
XXXHDPI 64*64

图标下载

http://www.flaticon.com 
这个是我最常用的,资源很多(需翻墙)。

https://design.google.com/icons/ 
https://github.com/google/material-design-icons 
谷歌提供的


图标开源项目

https://github.com/mikepenz/Android-Iconics 
强力推荐这个开源项目,我目前在用的,有了这个,图标问题完美解决。

下面是作者的原话:

If you are an app developer you will know the problem. You start an app but require many different icons, in different sizes (ldpi, mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi), different colors, and different variants
If you get the icons as vector (.svg) or there are many changes over the time, you will always have to get the correct drawables again.

This consumes a lot of time!

Now there’s an easy, fast, and small solution for this! The Android-Iconics library.

This library allows you to include vector icons everywhere in your project. No limits are given. 
Scale with no limit, use any Color at any time, provide a contour, and many additional customizations…

Use the icons in the variation you need them.

PS:而且该项目的readme中包涵很多设计和资源下载的网站


扁平化颜色

这里写图片描述

Material Palette调色板

这个网站可以根据你选择的颜色,自动生成Material Design对应的颜值 
http://www.materialpalette.com/blue/blue

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值