Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Naming style #28

Open
timmy00274672 opened this issue Jan 4, 2014 · 0 comments
Open

Naming style #28

timmy00274672 opened this issue Jan 4, 2014 · 0 comments
Assignees

Comments

@timmy00274672
Copy link
Owner

There are a number of good guidelines out there for writing Android code. Please try and follow these 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.

Example from API guide:

public class MyClass {
    public static final int SOME_CONSTANT = 42;
    public int publicField;
    private static MyClass sSingleton;
    int mPackagePrivate;
    private int mPrivate;
    protected int mProtected;
}
@ghost ghost assigned csyo Jan 4, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants