I’ve been following Google code style for Android without further thinking for a while. Now I’m thinking are there any real advantages of naming fields like mXXX as Google does? Seems a bit like Hungarian notation in C++ that is the ‘m‘ seems a bit redundant? But then why wise people in Google are using it?
I’ve been following Google code style for Android without further thinking for a while.
Share
mXxx stands for member variable, sXxx is a static member variable and XXX_XXX is a static final member variable. this is documented here