I want to customize a button using my custom drawable file as follows:
custom_button.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#48cae4" />
<corners android:radius="10dp" />
</shape>
But after changing the background of the button(as follows) there is no effect
android:background="@drawable/custom_button"
But if I change <style name="Theme.A" parent="Theme.MaterialComponents.DayNight.NoActionBar">
to <style name="Theme.A" parent="Theme.AppCompat.DayNight.NoActionBar">
, then custom drawble takes effect on the button, but then the Material Components I used, convert to normal widgets.