Android layout view id name issue -
i faced issue when named view android:id="@+id/textview1" , code textview tv1 = (textview) findviewbyid(r.id.textview1); was returning wrong view though there no warnings given naming convention. when changed name text_view_1 worked. i know usual naming convention small case android:id="@+id/text_view_1" or camel case android:id="@+id/textview1" is there documented resource explains issue or answer it? want know m stands in variable name see in open source code. e.g. textview mtextview; its noob question couldn't find answer anywhere. try clean , build project. android coding syle guide states: 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. it private imagebutton mbuttonstart; or private static ssingletonthing; that convention way required used if want contribute android sourcecode, c...