0 赞 0 踩
其他回答
ldpi (120dpi) 0.75
mdpi (160dpi) 1.0 baseline
hdpi (240dpi) 1.5
xhdpi (320dpi) 2.0
xxhdpi (480dpi) 3.0
使用4的倍数表示你在以上任何一个设备上都不会得出奇数个像素甚至小数个像素。就保证了两个控件放在一起中间不会有1个像素的黑线
还有Google官方Design文档已更新为Material版,这是原版:
48dpRhythm
Why 48dp?
Mind the gaps
mdpi (160dpi) 1.0 baseline
hdpi (240dpi) 1.5
xhdpi (320dpi) 2.0
xxhdpi (480dpi) 3.0
使用4的倍数表示你在以上任何一个设备上都不会得出奇数个像素甚至小数个像素。就保证了两个控件放在一起中间不会有1个像素的黑线
还有Google官方Design文档已更新为Material版,这是原版:
48dpRhythm
Touchable UI components are generally laid out along 48dp units.
Why 48dp?
On average, 48dp translate to a physical size of about 9mm (with some variability). This is comfortably in the range of recommended target sizes (7-10 mm) for touchscreen objects and users will be able to reliably and accurately target them with their fingers.
If you design your elements to be at least 48dp high and wide you can guarantee that:
- your targets will never be smaller than the minimum recommended target size of 7mm regardless of what screen they are displayed on.
- you strike a good compromise between overall information density on the one hand, and targetability of UI elements on the other.
Mind the gaps
Spacing between each UI element is 8dp.
热心网民 4小时前 0条评论 0 赞 0 踩
理由就是总要取个数。在适应不同分辨率的时候要除2,奇数肯定不行。偶数,你要取6,我要取10,OK,那就定个8吧。 李四正 4小时前 0条评论
0 赞 0 踩
登录后可回答 提交回答
关键词 :
- 上一个:借问,本科读的是985大学,依傍的是理工类专业,感怀以后考法律研究生可以为?
- 下一个:出哪些句子让您读后觉得灵魂被洗礼了?
推荐资讯
点击排行