Android Development — Some of the best practices

  1. Use Static Final For Constants (static 15%-20% faster)

  2. RecyclerView (replaces ListView and GridView)

  3. Don’t use a database unless you really need to

  4. You can think about realm it’s really awesome!

  5. RxJava is the best alternative to AsyncTasks and so much more

  6. Retrofit is the best networking library there is

  7. Don’t write your own HTTP client, use Volley or OkHttp libraries

  8. Shorten your code with RetroLambda

  9. Combine RxJava with Retrofit and RetroLambda for maximum awesomeness!

  10. Package by Feature, not layers

    for example:
    ├─ data
    │ ├─ local
    │ ├─ model
    │ └─ remote
    ├─ injection
    │ ├─ component
    │ └─ module
    ├─ ui
    │ ├─ main
    │ ├─ detail
    │ └─ etc..
    ├─ util
    └─ views
    ├─ adapters
    └─ widgets

11.Put passwords and sensitive data in gradle.properties

12.FlatBuffers is an efficient cross platform serialization library, so use it

13.think about Dagger2 or BufferKnife.

原文参考链接:https://laanayabdrzak.github.io/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值