Home > Mobile >  How do I assign an id to a drawable in text view in the xml file?
How do I assign an id to a drawable in text view in the xml file?

Time:04-29

How do I assign an id to a drawable in text view in the xml file.

The three dots is the drawable.

image

So I can find it by id.

findViewById<??????>(R.id.id_of_drawable)

CodePudding user response:

I used an image view next to the text view. android:srcCompat made the image invisible. When I changed it to android:src it worked.

  • Related