我的屏幕上角有一个ImageView
,有一个纹波选择器。由于某种原因,波纹不起作用。
请看看我的形象!
http://i.imgur.com/COFEQAO.png(我需要10个代表发布图片-_-)
View B
具有深绿色背景色。一旦我删除了这种背景颜色,纹波将起作用。
我的ripple_selector.xml
:
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/button_highlight">
</ripple>
我正在设置我的ImageView上的波纹,如下所示:
android:background="@drawable/ripple_selector"
如果我给纹波选择器一个掩码或背景它也会起作用,但我不想掩盖纹波。可能是什么问题呢? TY。
答案 0 :(得分:1)
我不知道如果这是一个错误或者应该是涟漪抽象的预期行为,但我已经得出结论,如果一个涟漪可绘制在一个背景颜色的顶部,而不是它自己的View
/ ViewGroup
,它不会被吸引。