【问题标题】:Native Round Ripple Effect For ImageViewImageView 的原生圆形波纹效果
【发布时间】:2021-01-16 22:26:47
【问题描述】:

我想要我的 Imageview 的原生圆形波纹效果。我使用了“selectableItemBackgroundBorderless”,但波纹效果出现在方框中。请查看下面的代码以供参考。提前致谢!!

 <ImageView
                android:id="@+id/ivAnswerListDownVote"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="@dimen/dp_8"
                android:clickable="true"
                android:focusable="true"
                android:foreground="?attr/selectableItemBackgroundBorderless"
                android:src="@drawable/ic_outline_thumb_down_alt_24"
                tools:targetApi="m" />

【问题讨论】:

    标签: android kotlin ripple


    【解决方案1】:

    你应该使用

    android:background="?attr/selectableItemBackgroundBorderless"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-07-22
      • 2017-05-12
      • 1970-01-01
      • 2015-07-21
      • 2016-06-02
      • 1970-01-01
      • 1970-01-01
      • 2015-09-01
      相关资源
      最近更新 更多