GridView的单元中添加了一个ImageView,ImageView中是处理过的Bitmap,Bitmap带有倒影。
结果问题出现,GridView的Focus出现的时候就会将有倒影的部分给遮挡住。
哪位高手能协助解决!?
------解决方案--------------------
把Focus时的颜色改为图片,然后让美工修改图片内框大小以显示倒影
------解决方案--------------------
1楼说的把Focus是的颜色改为图片是指:ImageView setBackGroundDrawable()时做的:
给你两个例子,你看下就明白了:
1,这是用颜色做BackGround的例子:
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Half-way between #FFF and #000 -->
<item android:state_enabled="false" android:color="#565555"/>
<item android:state_pressed="true" android:color="#FFF"/>
<item android:state_focused="true" android:color="#FFF"/>
<item android:color="@android:color/black"/>
</selector>
2。这是用图片做background的例子:
<selector xmlns:android="http://schemas.android.com/apk/res/android">
? <item android:state_window_focused="false" android:state_enabled="true"
android:drawable="@drawable/btn_statusbar_normal" />
? <item android:state_window_focused="false" android:state_enabled="false"
android:drawable="@drawable/btn_statusbar_normal" />
<item android:state_pressed="true"
android:drawable="@drawable/btn_statusbar_pressed" />
<item android:state_focused="true" android:state_enabled="true"
android:drawable="@drawable/btn_statusbar_pressed" />
<item android:state_enabled="true"
android:drawable="@drawable/btn_statusbar_normal" />
<item android:state_focused="true"
android:drawable="@drawable/btn_statusbar_normal" />
<item
android:drawable="@drawable/btn_statusbar_normal" />
</selector>
如还有疑问可以给我发Email:[email protected]