Skip to content
Advertisement

Tag: android-attributes

setImageResource() with attrs value

I’m trying to put an image to my ImageView, with a custom attribute defined by me, I’m doing it this way: Attrs: ImageView Attrs: Than in my View: And set the image to the ImageView with: But nothing appears, I’ve tried also with: And: UPDATE: I’ve already tried to parse attribute with ta.getInt(..) and its work fine! I can not

Advertisement