What do you want to save?
Add Code snippet
New code examples
-
Java 2021-11-04 12:49:17
android studio get id name from view
//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()) Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5