【发布时间】:2012-03-29 22:13:59
【问题描述】:
我创建了带有背景颜色的按钮,但是当我单击它时,它什么也不显示。
点击后我需要在按钮上显示不同的颜色,因为用户需要知道按钮是
点击。
我不明白该怎么做?
给我建议。
这是我的按钮代码。
<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>
【问题讨论】: