Android总结

分辨率

目前手机流行的ppi是400,介于超高(xhdpi,320)和超超高(xxhdpi,480)之间.

用720*1280或者1080*1920的尺寸的设计图比较好.

720*1280下换算系数为2,即图上2px等于手机上1dp.

1080*1920下换算系数为3.

文件组织

BaseClass

Resources

drawable

layout

Values.xml

很多cs文件

常用控件

  1. TextView,EditText,Button
  2. View,LinearLayout,ListView
  3. Spiner,RadioButton

常用属性

  1. layout_width,layout_height,orientation,gravity
  2. background,foreground

常用设计

标题栏,蓝色#01a8ec,字体20dp

文字,黑色#333333,灰色#bbbbbb,普通15dp,小字12dp,大字25dp

灰线,灰色#e3e3e3,细的1dp,宽的10dp,两边空出的距离是10dp或者15dp

灰色背景,#f1f1f1

ListView,高度70dp

原文地址:https://www.cnblogs.com/fabao/p/11334193.html