【发布时间】:2017-07-17 21:47:55
【问题描述】:
我想在带有圆角的布局上设置波纹效果。我该怎么做?
【问题讨论】:
标签: android android-layout rippledrawable
我想在带有圆角的布局上设置波纹效果。我该怎么做?
【问题讨论】:
标签: android android-layout rippledrawable
只需在 xml 文件中设置这些属性
android:background="?android:attr/selectableItemBackground"
android:clickable="true"
应该可以的。
【讨论】:
android:foregroud="?android:attr/selectableItemBackground"
android:foregroud="?android:attr/selectableItemBackground" 也不起作用