google official demonstration: when the variable starts with m in android

The content comes from the google android official website


Follow Field Naming Conventions

  • 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.

Here is a clear description of the naming rules:
  • Variables of non-public and non-static domains start with m (in fact, they are protected and private member variables)
  • Static variables start with s
  • Other variables start with a lowercase letter
  • Public static final variables (constants) are all uppercase underlined ALL_CAPS_WITH_UNDERSCORES

Guess you like

Origin blog.csdn.net/lxxlxx888/article/details/53958494