Android Background Drawable Not Working in Button Since Android Studio 4.1

前端 未结 2 2038
礼貌的吻别
礼貌的吻别 2020-12-04 00:28

I find out that since Android Studio 4.1 I cannot change the background color of a Button by setting color on its android:background, just no effec

2条回答
  •  猫巷女王i
    2020-12-04 00:59

    The Android Studio 4.1 new-project wizard, for many of its templates, has the project use the Material Components for Android library. And, it sets up the default theme to be based on Theme.MaterialComponents.DayNight.DarkActionBar.

    A side effect of this is that any

提交回复
热议问题