【问题标题】:How do i do this special ripple effect in buttons? [closed]我如何在按钮中实现这种特殊的涟漪效果? [关闭]
【发布时间】:2015-08-26 15:03:38
【问题描述】:

我在一个应用中看到了一种特殊的涟漪效应,我现在也想做。我为这个涟漪效应附加了一个video

任何想法或建议我可以如何做到这一点?

【问题讨论】:

  • 在您的链接上得到了这个:“您需要权限想要加入?请向所有者请求访问权限,或切换到具有权限的帐户。了解更多信息”...请寻找其他分享方式
  • 哦,对不起,我的错误,我更新了帖子。

标签: android ripple


【解决方案1】:

您可以为此使用library 并将您的视图包裹在其中

<com.andexert.library.RippleView
  android:id="@+id/more"
  android:layout_width="?android:actionBarSize"
  android:layout_height="?android:actionBarSize"
  android:layout_toLeftOf="@+id/more2"
  android:layout_margin="5dp"
  rv_centered="true">

  <ImageView
    android:layout_width="?android:actionBarSize"
    android:layout_height="?android:actionBarSize"
    android:src="@android:drawable/ic_menu_edit"
    android:layout_centerInParent="true"
    android:padding="10dp"
    android:background="@android:color/holo_blue_dark"/>

</com.andexert.library.RippleView>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-02-25
    • 1970-01-01
    • 2017-07-12
    • 1970-01-01
    相关资源
    最近更新 更多