http://blog.163.com/boy_wwy/blog/static/1370271882012627104732749/
如链接所示
请大家指教下,最好可以贴出实现方式
------解决方案--------------------
图片不可以的,
把view的background设置成下边drawable这个就可以了:
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="false">
<shape>
<solid android:color="@color/white" />
<corners
android:topLeftRadius="1.0dip"
android:topRightRadius="1.0dip"
android:bottomLeftRadius="10.0dip"
android:bottomRightRadius="10.0dip" />
</shape>
</item>
<item android:state_pressed="true">
<shape>
<solid android:color="@color/setting_bg_color" />
<corners
android:topLeftRadius="1.0dip"
android:topRightRadius="1.0dip"
android:bottomLeftRadius="9.0dip"
android:bottomRightRadius="9.0dip" />
</shape>
</item>
<item android:state_enabled="false">
<shape>
<solid android:color="#ff000000" />
<corners
android:topLeftRadius="1.0dip"
android:topRightRadius="1.0dip"
android:bottomLeftRadius="9.0dip"
android:bottomRightRadius="9.0dip" />
</shape>
</item>
</selector>