我知道驼峰规则,但我很困惑与该M规则。它代表什么?我是一个PHP开发人员,为布尔我们用的变量首字母类型的指示,像'B','我'的整数等等。
I know about camel case rules, but I'm confused with this m rule. What does it stand for? I'm a php developer, "we" use first letters of variables as indication of type, like 'b' for boolean, 'i' for integer and so on.
时的m一个java的事情吗?这是否代表手机?混合? ;)
Is 'm' a java thing? Does it stand for mobile? mixed? ;)
这个符号来自AOSP(Android开源项目)的 code风格贡献者指引的:
This notation comes from AOSP (Android Open Source Project) Code Style Guidelines for Contributors:
按照字段命名约定
在非公开,非静态字段名 以m开始的。 在静态字段名称开头秒。 在其他领域开始与小写字母。 公共静态最终字段(常量)是ALL_CAPS_WITH_UNDERSCORES。 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.请注意,该链接的样式指南是为code到Android开源项目进行做出了贡献。
Note that the linked style guide is for code to be contributed to the Android Open Source Project.
这是不是一个风格指南个人Android应用程序的code。