Android Studio preview is not showing ActionBar

时间:2019-03-19 14:39:22

标签: android-studio android-layout

I was updated my Android Studio. Android Studio creates issue in Android preview Android actionbar can't show I don't know what's the issue I tried many times but failed. Action and header doesn't show:
action and header can't show

3 个答案:

答案 0 :(得分:3)

Make sure Show Layout Decorations is checked under the preview panel.

Show Layout decorations

答案 1 :(得分:0)

请以 style.xml

检查您的 AppTheme
<resources>

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
</style>

答案 2 :(得分:0)

确保在“显示系统 UI”预览面板下使用 Android Studio v4.1.1。

enter image description here