0
点赞
收藏
分享

微信扫一扫

C#泛型协变与逆变

程序猿不脱发2 2024-05-26 阅读 8
android

1、官网实现

链接:https://developer.android.google.cn/training/wearables/apps/splash-screen?hl=zh-cn

2、遇到的问题

在启动新的activity,com.google.android.material.tabs.TabLayout控件无法inflate,出现

Error inflating class com.google.android.material.tabs.TabLayout的问题。

原因:将启动界面的theme设置在application中,与activity的theme存在冲突
解决方案:将设置splashScreen的theme设置在启动的activity即可
举报

相关推荐

0 条评论