ImageView 的原生圆形波纹效果

Native Round Ripple Effect For ImageView

我想要我的 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:background="?attr/selectableItemBackgroundBorderless"