[关闭]
@mSolo 2015-04-29T08:42:52.000000Z 字数 1889 阅读 1270

Android 自学之路(二)

Android 适配


Android 开发适配索引贴

Android 最佳实践之 resources

摘录,版权所属:Android最佳实践

  1. <resources>
  2. <!-- grayscale -->
  3. <color name="white" >#FFFFFF</color>
  4. <color name="gray_light">#DBDBDB</color>
  5. <color name="gray" >#939393</color>
  6. <color name="gray_dark" >#5F5F5F</color>
  7. <color name="black" >#323232</color>
  8. <!-- basic colors -->
  9. <color name="green">#27D34D</color>
  10. <color name="blue">#2A91BD</color>
  11. <color name="orange">#FF9D2F</color>
  12. <color name="red">#FF432F</color>
  13. </resources>
  1. <resources>
  2. <!-- font sizes -->
  3. <dimen name="font_larger">22sp</dimen>
  4. <dimen name="font_large">18sp</dimen>
  5. <dimen name="font_normal">15sp</dimen>
  6. <dimen name="font_small">12sp</dimen>
  7. <!-- typical spacing between two views -->
  8. <dimen name="spacing_huge">40dp</dimen>
  9. <dimen name="spacing_large">24dp</dimen>
  10. <dimen name="spacing_normal">14dp</dimen>
  11. <dimen name="spacing_small">10dp</dimen>
  12. <dimen name="spacing_tiny">4dp</dimen>
  13. <!-- typical sizes of views -->
  14. <dimen name="button_height_tall">60dp</dimen>
  15. <dimen name="button_height_normal">40dp</dimen>
  16. <dimen name="button_height_short">32dp</dimen>
  17. </resources>
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注