Missing styles. Is the correct theme chosen for this layout?

后端 未结 21 1243
慢半拍i
慢半拍i 2020-11-28 19:27

Missing styles. Is the correct theme chosen for this layout? Use the Theme combo box above the layout to choose a different layout, or fix the theme style ref

相关标签:
21条回答
  • 2020-11-28 20:32

    For me, it was occurring on menu.xml file as i was using android:Theme.Light as my theme, So what i did was -

    1. Added new Folder in res directory named values-v21.

    2. Added android:Theme.Material.Light as AppTheme in styles.xml.

    0 讨论(0)
  • 2020-11-28 20:32

    Change your App theme to AppCombat..

    0 讨论(0)
  • 2020-11-28 20:33

    If we are creating too many projects using Android Studio sometime Rendering issue comes. Even creating a blank activity we receive such rendering error. Please shut down and restart Android studio. In case the issue persists you can

    Hope this helps. It works similar fashion as rule of thumb, in case all looks good and still error persists a restart of application usually resolves the issue.

    0 讨论(0)
提交回复
热议问题