【发布时间】:2018-08-22 11:53:27
【问题描述】:
我在 YouTube 的安卓应用中看到了这种涟漪效应。我想在我的应用程序中获得相同的效果。我应该创建自己的 Ripple-Drawable 还是有不同的方法? 实际上我已经尝试过“?attr/selectableItemBackground”,但效果却大不相同。
【问题讨论】:
-
这是由 Material Design 通过 AppCompat 主题处理的。在这里了解这些:android-developers.googleblog.com/2014/10/…
-
@shkschneider 谢谢。我想我已经发现了我的问题。
-
如果是这样,请不要犹豫回答您自己的问题并验证它;)
-
尝试使用
android:background="?attr/selectableItemBackgroundBorderless" -
@shkschneider 希望我的答案很快就会上线。
标签: java android ripple rippledrawable