-
0 votesanswersviews
选择器不能与android中的mipmap图像一起使用
我想要的只是当用户按下按钮时图像按钮变为另一个图像 . 以下是我的目录列表 . 如你所见,我没有看到mipmap-hdpi,mipmap-mdpi等等 . 我的问题是我无法为我的imagebutton添加选择器xml . directory list以下图片是我的content_main文件,称为activity_main . content_main.我的程序显示按钮的图像但是当我在cont... -
226 votesanswersviews
Android定制按钮;改变文字颜色
我做了一个按钮,改变了不同状态下的背景,这样: <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true" android:drawable="@drawable/btn_loca...