How To Get The Drawable Name From My Image In A List View Android
Ok so I have a list view with a custom list view adapter, and each list item has an 'icon'. when I click the list item, I am easily able to get all the text field names such as nam
Solution 1:
When you set the imageView's drawable, you can set the ImageView's tag:
imageView.setTag(R.drawable.my_drawable);
imageView.setDrawableResource(R.drawable.my_drawable);
And later use:
imageView.getTag();
Post a Comment for "How To Get The Drawable Name From My Image In A List View Android"