Ich muss die obere Leiste außerhalb der "Schubladennavigation" platzieren.Wie die obere Leiste in Android Lollipop versteckt?
In meinem kitkat Gerät, sieht es gut aus. aber beim Test auf Lollipop erscheint dieser Balken.
Ich weiß nicht, wie ich es entfernen kann, ich habe versucht, das Thema der Aktivität auf "NoActionBar" und ähnliche Themen zu ändern. aber es funktioniert nicht .
Vielen Dank.
Ich mache dieses Design. Das Kitkat sieht gut aus.
lolipop aber wenn Sie diese Bar sehen.
Dies ist meine Haupttätigkeit:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.like.mail.network.aupa.maillike.TestActivity">
<include
layout="@layout/top_toolbar" />
<include layout="@layout/content_test" />
</LinearLayout>
Das ist mein content_test ist:
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<include
layout="@layout/app_bar_main"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<android.support.design.widget.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="left"
android:fitsSystemWindows="true">
<ExpandableListView
android:id="@+id/navigationmenu"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#222"
android:groupIndicator="@null"
android:listSelector="#D84B20">
</ExpandableListView>
</android.support.design.widget.NavigationView>
</android.support.v4.widget.DrawerLayout>
Das ist mein Manifest ist:
<activity
android:name=".TestActivity"
android:label="@string/title_activity_test"
android:theme="@style/AppThemeWithoutActionBarTitle">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Das ist mein Stil:
<style name="AppThemeWithoutActionBarTitle" parent="AppTheme">
<item name="android:actionBarStyle" tools:targetApi="honeycomb">
@style/ActionBarWithoutTitle
</item>
</style>
<style name="ActionBarWithoutTitle" parent="@style/ActionBar">
<item name="android:displayOptions" tools:targetApi="honeycomb">useLogo</item>
</style>
Haben Sie versucht, den Vollbildmodus einzustellen? – Gorio
Ja. Der Vollbildmodus sieht gut aus. aber wenn der Bildschirm aus Bar-Telefon (das zeigt den Stapel, Benachrichtigungen, etc.) behandelt und decken einige Elemente meiner "Top-Bar". und auch ich möchte es im normalen Modus gut haben. Gibt es eine Lösung für dieses Problem? Bin ich falsch bei der Strukturierung meines Codes? –