我已经搜索了一段时间了,但我无法在android应用程序中找到一种使导航栏消失的方法。这是我在android工作室的资源
<!-- 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>
<style name="AppTheme.NoActionBar" >
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
<style name="AppTheme.CustomPop">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowCloseOnTouchOutside">true</item>
</style>
以及舱单
<?xml version="1.0" encoding="utf-8"?>
<permission
android:name="com.example.....maps.permission.MAPS_RECEIVE"
android:protectionLevel="signature" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="@style/AppTheme.NoActionBar"
android:label="@string/app_name"
>
<activity
android:name=".Class"
android:theme="@style/AppTheme.CustomPop" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
我在这里得到了什么

我想要地图串的条子去松开。
谢谢!
发布于 2015-12-10 12:09:15
可以使用标志隐藏或显示通知栏。
隐藏:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);以显示:
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);现在是actionBar:
隐藏:
getSupportActionBar().hide();以显示:
getSupportActionBar().show();发布于 2015-12-10 11:55:51
把这条线放好
requestWindowFeature(Window.FEATURE_NO_TITLE);就在
super.onCreate(savedInstanceState);在活动onCreate方法中。
https://stackoverflow.com/questions/34201163
复制相似问题