Creating a game in Android using multiple Buttons to display an image from the drawable folder. I want to change the button to a different image after the button has been clicked on. Here is the button code:
<Button android:id="@+id/b36"
android:background="@drawable/black"
android:layout_width="45px"
android:layout_height="45px"
/>
I can't find anything about how to change the actual image of the button. You can change the color of the button by using the following code in the java file:
b36.setBackgroundColor(0xAA00AA00);