I have a button style defined in my styles.xml file.
<style name="Button" parent="Widget.AppCompat.Button.Borderless.Colored">
<item name="android:drawablePadding">@dimen/padding_medium</item>
<item name="android:paddingStart">@dimen/padding_medium</item>
<item name="android:paddingEnd">@dimen/padding_medium</item>
<item name="android:textAppearance">@style/ButtonTextAppearance</item>
</style>
<style name="Button.Secondary" parent="Button">
<item name="android:background">@drawable/secondary_button_state</item>
<item name="android:textColor">@color/blue</item>
</style>
<style name="Button.Secondary.Large" parent="Button.Secondary">
<item name="android:drawableEnd">@drawable/ic_chevron</item>
<item name="android:drawableTint">?colorPrimary</item>
<item name="android:gravity">center|start</item>
</style>
And I'm using it in a view
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/action_date_range"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/Button.Secondary.Large"
android:text="@{viewModel.overrideDateRange}"
tools:text="@string/override_date_range" />
The issue I'm having is with <item name="android:drawableEnd">@drawable/ic_chevron</item>
. This drawable item is not being rendered in api 23 and below, api 24 and up it's fine.
EDIT:
This is my drawable resource
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M7,19.4099l1.5443,1.5901l8.7414,-8.9993l-8.7414,-9.0007l-1.5443,1.5916l7.1956,7.4271z"
android:strokeWidth="1"
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:strokeColor="#00000000" />
</vector>