android studio get id name from view

Solutions on MaxInterview for android studio get id name from view by the best coders in the world

showing results for - "android studio get id name from view"
Axel
17 Jul 2018
1//Don't get the ID name/string from the view ID.
2
3//Instead use the 
4android:tag = "String"
5//in your xml 
6
7//Then in Java use 
8View.getTag()
9  
10//To still get the ID name/string from view ID.
11getResources().getResourceEntryName(View.getId())