powerpoint45
Member
In my xml layout I have a button and an image inside the button to the right.I used:
Let's say I want to change the image to an X and my button in my java code is named button1.How whould I change the image?I know how to change the background using:
But I can't find out how to change the image to the right.
Code:
android:drawableRight="@drawable/checkmark
Let's say I want to change the image to an X and my button in my java code is named button1.How whould I change the image?I know how to change the background using:
Code:
button1.setBackgroundResource(R.drawable.X)
But I can't find out how to change the image to the right.