android studio 中去除应用标题栏

android studio 中去除应用标题栏  

  ⒈ mainifests中设置:

  android:theme="@style/AppTheme"(即默认设置).

  ⒉ values->styles.xml中设置:

  style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar".

㈡  values->styles.xml中:

   在当先使用的style的parent属性添加NoActionBar.如原先为

         style name="AppTheme" parent="Theme.AppCompat.Light".

      修改后为

         style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar".

来自:http://www.w2bc.com/Article/65175

<resources>

    <!-- Base application theme. -->
    <!--<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">-->
    <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <!-- Customize your theme here. -->
    </style>

</resources>

  

原文地址:https://www.cnblogs.com/gisoracle/p/5198996.html