android - How to call an item using java? -


i have layer-list in drawable , contains item has drawable assigned it:

<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item android:drawable="@drawable/first"     android:id="@+id/first">     </item> </layer-list> 

and want change drawable of item using java, idea how this??


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -