As you know, buttons in API+21 raise when you touch them. According to the documentation, you should not place such buttons in dialogs or other raised interfaces. I have tried setting elevation to 0 or 1 but to no avail. I just want the button to have the ripple effect without raising. How can I do that?
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:elevation="0dp"
android:clickable="true"/>