I create button with background color but when i click on it, it's not show anything.
I need to show different color on button after click because user need to know button is
Click.
I don't understand how to do this?
Give me suggestion.
here is my button code.
<Button android:textSize="15px"
android:id="@+id/button9"
android:gravity="center|bottom"
android:textColor="@color/myWhiteColor"
android:drawableTop="@drawable/math"
android:text="@string/HomePage_Math"
android:background="@color/myMaroonColor"
android:layout_width="54dp"
android:layout_height="wrap_content" ></Button>
//XML file saved at res/drawable/button_bg.xml:
//This layout XML will apply the color list to a View:
This will work