I am trying to implement ripple effect for ImageButton.I have set ripple in background and drawable image in the src for it.
android:background="@drawable/myripplexml"
android:src="@drawable/myimagepath"
Its giving nice ripple effect inside button Layout. But I want Ripple effect to extend outside the Button Layout also.Another way to do it is using :
android:background="?android:attr/selectableItemBackgroundBorderless"
But it uses default color and style. How can I customize it regarding color, shape and it's size ?
<ripple>
element. There is an example in theRippleDrawable
documentation. – Yawmeter