Best practices for ID naming conventions in Android?

Viewed 30787

I saw this link first but it didn't seem to have much activity: Naming convention for IDs in Android

I am curious what the best practice is for naming IDs for the various items in Design View on Android Studio.

Right now I'm doing stuff like this: If it's an TextView with the text "Welcome To My Program", I'll name it welcomeTextViewID. If it's a Button that starts some subroutine called doStuff, I might call it doStuffButtonID.

In other words I use a sort of descriptor + datatype + ID convention.

Is this considered bad practice? I always heard mixed things on using descriptors inside the name. For example in a language like C++ naming a string variable nameString (since if you change the data type later you have to also update the name).

3 Answers
Related