Cardview doesn't respect z index order in relative layout
On Android L, CardView
has an elevation set, which will make it appear above other views, regardless of their order in the layout. You'll need to either set an elevation on the button, or better, put the button inside the CardView
.