当前位置: 代码迷 >> Android >> android studio 中除去应用标题栏
  详细解决方案

android studio 中除去应用标题栏

热度:57   发布时间:2016-04-24 11:43:31.0
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>

  

  相关解决方案