1
madeye 2013-03-19 16:38:20 +08:00
Non-public, non-static field names start with m.
Static field names start with s. Other fields start with a lower case letter. Public static final fields (constants) are ALL_CAPS_WITH_UNDERSCORES. 详见:http://source.android.com/source/code-style.html#follow-field-naming-conventions |
2
michaelye1988 2013-03-19 16:48:09 +08:00
如果是布局文件中的某个控件,我习惯用这个控件的缩写打头,然后加上能够说明这个控件的作用的单词。比如:TextView tvTitle(标题),Button btnBack(返回按钮)等。
|