I am trying to achieve a simple rounded corner layout with a colored background on two specific MaterialTextViews. Codes are below:
<com.google.android.material.textview.MaterialTextView
android:id="@+id/lblStartTime"
style="@style/customTimeRangePickerStyle"
android:layout_width="68dp"
android:layout_height="wrap_content"
android:padding="8dp"
android:textAlignment="center"
android:textSize="18sp" />
<style name="customTimeRangePickerStyle" parent="">
<item name="shapeAppearanceOverlay">@style/customTimeRangePickerDay</item>
</style>
<style name="customTimeRangePickerDay" parent="">
<item name="cornerFamily">rounded</item>
<item name="cornerSize">4dp</item>
<item name="strokeWidth">1dp</item>
<item name="strokeColor">@color/Cor2</item>
<item name="android:background">@color/fieldBackground</item>
</style>
Any tips why this is not working? The resulting textview shows no borders nor background color.
Thanks!