coding style - Why do most fields (class members) in Android tutorial start with `m`? -


i know camel case rules, i'm confused m rule. stand for? i'm php developer. "we" use first letters of variables indication of type, 'b' boolean, 'i' integer , on.

is 'm' java thing? stand mobile? mixed?

this notation comes aosp (android open source project) code style guidelines contributors:

follow field naming conventions

  • non-public, non-static field names start m.
  • static field names start s.
  • other fields start lower case letter.
  • public static final fields (constants) all_caps_with_underscores.

note linked style guide code contributed android open source project.

it not style guide code of individual android apps.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -