使用Material Components时应如何摆脱Appcompat样式?

时间:2019-03-31 03:41:38

标签: android-appcompat material-components-android

我在项目中使用了BottomNavigationView,并且我的应用程序不应该支持Lollipop之前的设备,因此我没有使用大型的appcompat库。但是当我运行应用程序时,它告诉我“该组件上的样式要求您的应用主题为Theme.AppCompat(或后代)。” 所以我想知道如何摆脱Appcompat的材料并使用Material组件?

1 个答案:

答案 0 :(得分:0)

According to the Get Started instructions, using either AppCompatActivity or AppCompatDelegate is required.