【发布时间】:2014-06-05 13:53:46
【问题描述】:
有没有办法改变 ImageButton 的背景而不为该状态创建另一个按钮?
我的意思是,当您添加 ImageButton 时,它会获得灰色背景,并且在选择时会变得更深一些。
添加:android:background="@color/white",将使我的背景变为白色(如我所愿),但在选择按钮时会发生注意事项。像这样的东西会很好:
android:background_selected ="the color you want here"
我想要一个在正常状态下背景为蓝色的按钮,按下该按钮时为蓝色背景。
【问题讨论】:
标签: android background imagebutton