i got a button which replaces the current fragment with a custom slidein
- slideout
animation.
FragmentTransaction ft = manager.beginTransaction();
ft.setCustomAnimations(R.anim.slide_in_right, R.anim.slide_out_left);
ft.replace(R.id.fragment_container, fragment);
ft.commit();
On the Button i want to use a ripple like this:
android:background="?selectableItemBackgroundBorderless"
Everything technicly works, but you cant see the ripple-animation. You only see it if you press the button very long. The slidein animation starts before the ripple is visible. How can i make the ripple visible?