問題:The style on this component requires your app theme to be Theme.MaterialComponents
具體情況:
- 使用WindowManager addView 的浮窗View會出現問題秒梅,Activity沒有問題刀森。
解決:
- 按提示撮奏,在Manifest的Application中設置為
<application android:theme="...Theme.MaterialComponents"/>
[失敻芾馈弯菊!] - 正確的解決辦法:在自己的App的onCreate時,調用
setTheme
設置對應的主題踱阿。