Android:变量命名规则

参考:http://stackoverflow.com/questions/4237469/why-do-variable-names-often-start-with-the-letter-m

According to Google documentation:

  • 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.
posted @ 2016-08-20 15:35  MakeBetter  阅读(332)  评论(0编辑  收藏  举报