0

I have set the app theme in styles.xml to AppCompat.Light.NoActionBar but it is not hiding the action bar in the visual editor.

This is the Styles.xml file:

<resources>

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

</resources>

And this is the result:

enter image description here

AskNilesh
  • 67,701
  • 16
  • 123
  • 163
Ethan Adams
  • 19
  • 1
  • 3

1 Answers1

1

you can use this if you want to hide status bar.

<style name="Theme.AppCompat.Light.NoActionBar.FullScreen" parent="@style/Theme.AppCompat.Light.NoActionBar">
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowActionBar">false</item>
    <item name="android:windowFullscreen">true</item>
    <item name="android:windowContentOverlay">@null</item>
</style>

Also Add this in for your activity in manifest

<activity
   android:name=".activities.FullViewActivity"
   android:theme="@style/Theme.AppCompat.Light.NoActionBar.FullScreen" 
/>
sudesh regmi
  • 536
  • 4
  • 12