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 the 65k 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. SharePoint Permission Extension
  2. Unix系统小知识(转)
  3. axis 理解
  4. Deepin下phpunit安装,以及执行过程中所遇到的问题
  5. [ZZ]Sign Up for the First-Ever Appium Roadshow on August 20th in New York City
  6. PHP 用文件流方式展示图片
  7. cocos2dx 文件处理
  8. 70个经典的 Shell 脚本面试问题
  9. iptables实用教程(一):基本概念和原理
  10. Linux中fdisk硬盘分区方法
  11. sdut 2878 圆圈
  12. ECMAScript中所有的函数的参数都是按值传递的
  13. SpringBoot整合RabbitMQ-整合演示
  14. Analysis Services 中的服务器属性配置
  15. Ubuntu Firefox HTML5
  16. linux就该这么学,第十一天了
  17. P4574 [CQOI2013]二进制A+B
  18. .NET(C#)使用Serialize、Deserialize序列和反序列化XML文档
  19. JAVA 传递
  20. 不错的Spring学习笔记(转)

热门文章

  1. Java8特性详解 lambda表达式 Stream
  2. 自定义控件(视图)2期笔记09:自定义视图之继承自ViewGroup(仿ViewPager效果案例)
  3. HDU 4607 Park Visit(树的直径)
  4. Wpf Hyperlink超链接控件使用
  5. (转)ECSHOP给分类添加代表图
  6. asp.net操作cookie类
  7. Android 笔记
  8. Linux下登陆mysql服务器不需要输入账号密码信息
  9. C语言的运行机制
  10. SSM框架入门和搭建 十部曲