Ich möchte, dass die Symbolleiste (Aktionsleiste) beim Scrollen vollständig ausgeblendet wird. Beim Starten der Aktivität oder beim Zurückscrollen sollte die Symbolleiste sichtbar und die Statusleiste hellgrau sein.Die Symbolleiste wird nicht unter der transparenten Statusleiste angezeigt
- Start als [Statusleiste | Symbolleiste | Inhalt]
- herunterscrollen [co- (statusbar) -entent]
- hochscrollen [statusbar | Symbolleiste | Inhalt]
derzeit:
activity_layout.xml
<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:background="@color/background_white"
tools:context="com.conevoud.captjeluigi.ui.activities.GalleryActivity">
<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<FrameLayout
android:id="@+id/content_frame"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
<include layout="@layout/toolbar" />
</android.support.design.widget.CoordinatorLayout>
<include layout="@layout/drawer_left" />
</android.support.v4.widget.DrawerLayout>
toolbar.xml
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<android.support.design.widget.AppBarLayout
android:id="@+id/toolbar_frame"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:layout_scrollFlags="scroll|enterAlways"
app:popupTheme="?popup_theme"
app:theme="@style/ThemeOverlay.AppCompat.ActionBar" />
</android.support.design.widget.AppBarLayout>
</merge>
Stile:
<item name="windowActionModeOverlay">true</item>
<item name="android:windowTranslucentNavigation">true</item>
<item name="android:windowTranslucentStatus">true</item>
danke für das Lesen.
Glück gehabt diese Festsetzung loswerden? – SqueezyMo
Ich habe eine Lösung gefunden, die jemand noch wissen will? – ThirdMartian
ja, bitte. @ThirdMartian –