项目经验总结(一)

Layout命名规范

一个activity对应一个ac_layout

Listview的item对应  lv_layout

Dialog的view对应   dg_layout

Linearlayout的item对应ll_layout

自定义组件                 com_layout

全局的layout              gb_layout

各部件layout           对应top_layout,bottom_layout,body_layout,..

 

Id命名规范

功能型组件

Layout_功能             如main_to_homepage

                                       Main_to

内容型组件              如main_txt_username

容器型组件              如main_ctn_elements

 

Drawable命名规范

ButtonSelecter                 对应         sel_bt_drawable

Xxselecter                           对应         sel_xx_drawable

Background      对应         bg_drawable

Bg_drawable的drawable推荐      line_color_shape

 

Diemen命名规范

Layout_compont_type    如main_tohomepage_h

 

Style命名规范

Layout_compont               如main_tohomepage

Color命名规范

颜色  如 white

说不出名字的颜色,暗、深、.、土、浅       如     dark_white       light_gray                  deep_gray

 

Activity命名规范

常见的用英文,不会的用中文拼音

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值