Do's and Don'ts for Android development, by Futurice developers

  1. Use Gradle and its recommended project structure
  2. Put passwords and sensitive data in gradle.properties
  3. Don't write your own HTTP client, use Volley or OkHttp libraries
  4. Use the Jackson library to parse JSON data
  5. Avoid Guava and use only a few libraries due to the65k method limit
  6. Use Fragments to represent a UI screen
  7. Use Activities just to manage Fragments
  8. Layout XMLs are code, organize them well
  9. Use styles to avoid duplicate attributes in layout XMLs
  10. Use multiple style files to avoid a single huge one
  11. Keep your colors.xml short and DRY, just define the palette
  12. Also keep dimens.xml DRY, define generic constants
  13. Do not make a deep hierarchy of ViewGroups
  14. Avoid client-side processing for WebViews, and beware of leaks
  15. Use Robolectric for unit tests, Robotium for connected (UI) tests
  16. Use Genymotion as your emulator
  17. Always use ProGuard or DexGuard

更多请关注原文:https://github.com/benniaobuguai/android-best-practices#use-gradle-and-its-recommended-project-structure

更多相关文章

  1. OpenGL ES教程VI之纹理贴图(原文对照)
  2. NestedScrollView+RecyclerView滑动冲突问题,加载更多
  3. Android Fresco图片处理库用法API英文原文文档2-1(Facebook开源An
  4. Activity生命周期的回调,你应该知道得更多!--Android源码剖析(上)
  5. 原文:Android Theme XML
  6. Android Fresco图片处理库用法API英文原文文档2-2(Facebook开源An
  7. Android中文文档v0.1 beta低调发布,期待更多同学来参加review
  8. Android公共库——图片缓存 网络缓存 下拉及底部更多ListView 公

随机推荐

  1. android之Eclipse如何使用adb
  2. 【Android 内存优化】Android 工程中使用
  3. Android中关于Volley的使用(四)利用Network
  4. Android图标设计标准和原则
  5. Android 开启之旅-学习路线
  6. Android应用程序的消息处理机制
  7. 关于android应用程序签名的一些事儿
  8. android 屏幕尺寸适配实现方案
  9. Android(安卓)自学之进度条ProgressBar
  10. Android手势与触摸事件的分发和消费机制