ImageView cannot settag

The ImageView cannot directly for the image with the glide with img. SetTag (” 123 “), complains, correct position is:

1. Add an ids. XML file to the value folder as follows:

<? xml version="1.0" encoding="utf-8"? > <resources> <item name="Imageid (can be changed to whatever you want)" type="id"/>
</resources>
Copy the code

Img. setTag(R.id.imageid,”123″);

3. Obtain the tag using img.getTag(R.id.imageid), ok

Supplementary: I have read the article that glide… Into (img) after calling img.settag(“123”), tried this approach but ran into problems. So I’m going to do it the same way