网格点击半透明都效果选择器

This commit is contained in:
zengfantian 2015-03-29 01:45:37 +08:00
parent 6242026fda
commit d8731cfde3
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="true" android:state_pressed="false" android:drawable="@android:color/transparent" />
<item android:state_focused="true" android:state_pressed="true" android:drawable="@color/black_alpha" />
<item android:state_focused="false" android:state_pressed="false" android:drawable="@android:color/transparent" />
<item android:state_pressed="true" android:drawable="@color/black_alpha" />
</selector>