标题: Kotlin 章节: Kotlin 内容:
Activity 的 layout 以 module_activity 开头
Fragment 的 layout 以 module_fragment 开头
Dialog 的 layout 以 module_dialog 开头
include 的 layout 以 module_include 开头
ListView 的行 layout 以 module_list_item 开头
RecyclerView 的 item layout 以 module_recycle_item 开头
GridView 的行 layout 以 module_grid_item 开头
如:module_login_btn_pressed,module_tabs_icon_home_normal
• tween 动 画 资 源 : 尽 可 能 以 通 用 的 动 画 名 称 命 名 , 如 module_fade_in, module_fade_out, module_push_down_in (动画+方向); • frame 动画资源:尽可能以模 块+功能命名+序号。 如:module_loading_grey_001
如:
采用以下规则:
模块名_描述信息
如:
采用以下规则: 父 style 名称.当前 style 名称 如:
<style name="ParentTheme.ThisActivityTheme">
…
</style>
模块名_逻辑名称 如:moudule_login_tips,module_homepage_notice_desc
常用缩写表如下: | 控件 | 缩写 |
---|---|---|
LinearLayout | ll | |
RelativeLayout | rl | |
ConstraintLayout | cl | |
ListView | lv | |
ScollView | sv | |
TextView | tv | |
Button | btn | |
ImageView | iv | |
CheckBox | cb | |
RadioButton | rb | |
EditText | et |
其它控件的缩写推荐使用小写字母并用下划线进行分割,例如: ProgressBar 对应的缩写为 progress_bar DatePicker 对应的缩写为 date_picker