I've been trying to apply a backgroundTint to a ConstraintLayout element having a Drawable background. However, the tint is not applied and the layout has the same background color as the drawable (only in API 21; works fine from API 23 upwards). It doesn't work with LinearLayout and GridLayout either, so I think it might be something to do with ViewGroups. Here's a simplified version of the element.
<LinearLayout
android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="vertical"
android:background="@drawable/mybackground"
android:backgroundTint="#ff0000">
<!--Sub views here-->
</LinearLayout>
And here's the background drawable.
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#ffffff"/>
<corners android:radius="10dp"/>
</shape>
How do I fix this?