Android Studio Get Id Name From View

[Solved] Android Studio Get Id Name From View | Vb - Code Explorer | yomemimo.com
Question : android studio get id name from view

Answered by : abdul-h

//Don't get the ID name/string from the view ID.
//Instead use the
android:tag = "String"
//in your xml
//Then in Java use
View.getTag()
//To still get the ID name/string from view ID.
getResources().getResourceEntryName(View.getId())

Source : | Last Update : Fri, 24 Jul 20

Answers related to android studio get id name from view

Code Explorer Popular Question For Vb