![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
代码规范
爱乐写代码
要么去学习,要么被淘汰
展开
-
Android代码规范
代码规范目的:易读可维护1:命名: 大驼峰(类(组件,接口,工具类)) 小驼峰(方法,变量) 小写(包) 大写(常量,枚举)2:尽量在每一个类中加入TAG,调试用途,若用框架,就不用,比如Loggerprivate static final String TAG = "DieselPayActivity";Log.i(TAG,title);FormatStrategy f...原创 2018-06-25 07:41:26 · 391 阅读 · 0 评论 -
Android Support Annotations注解库之优化代码
导言: Android Support Annotations是从19.1版本引入的注解库,可优化代码,增加可读性,又可减少代码的报错使用: 1:导包 implementation 'com.android.support:support-annotations:23.4.0'2:Support Annotations分类2.1:Nullness注解@Nullable注...原创 2018-09-13 13:14:39 · 312 阅读 · 0 评论