MD版本采用如下:

implementation 'com.google.android.material:material:1.2.0-alpha01'

再采用MD的Dialog的时候报标题错误,后经分析查找:

当前版本强制APP主题为MaterialComponents主题

解决如下:application添加主题如下:

The style on this component requires your app theme to be Theme.MaterialComponents

The style on this component requires your app theme to be Theme.MaterialComponents

其他activity 不需要填写任何主题:

The style on this component requires your app theme to be Theme.MaterialComponents

相关文章:

  • 2021-09-16
  • 2022-12-23
  • 2021-06-05
  • 2022-12-23
  • 2021-11-15
  • 2021-07-13
  • 2021-07-18
猜你喜欢
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2021-03-30
  • 2022-12-23
  • 2021-12-23
相关资源
相似解决方案