在ImageView的我已经设置了圆角的边框为象下面这样:Android:如何在这种情况下设置选择器xml?
<ImageView
android:id="@+id/twsbiLogoButton"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_gravity="right"
android:src="@drawable/tp_twsbi_logo"
android:background="@drawable/logo_layout_border"></ImageView>
其中的背景是xml文件,如:
<?xml version="1.0" encoding="UTF-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke
android:width="1dip"
/>
<solid
android:color="#3D2A1D"/>
<corners
android:radius="20sp"
android:topRightRadius="0dp"
android:bottomLeftRadius="0dp"
android:bottomRightRadius="0dp"/>
</shape>
,但我也想给选择到ImageView的就那么如何podssible?
不,亲爱的,我的意思是,我们将选择器放在按钮背景上,在我们预设它的时候生效。就像我想为我的imageView一样。如果用户按下它,应该改变颜色。 –