ImageView selectableItemBackgroundBorderless does not render outside of view bounds

后端 未结 6 2241
青春惊慌失措
青春惊慌失措 2021-02-13 21:47

I am using selectableItemBackgroundBorderless to add a ripple to an ImageView. My expected behaviour would be to have a circular ripple, extending the

6条回答
  •  猫巷女王i
    2021-02-13 22:24

    Just change from using ImageView's foreground to background: android:background="?selectableItemBackgroundBorderless". Then you should see the ripple render outside of the view bounds.

提交回复
热议问题