1 ist, was ich zu archivieren, aber, wie es atm aussieht, ist 2
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:fitsSystemWindows="true">
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
android:fitsSystemWindows="true">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
app:title="Edit Profile"
app:titleTextColor="@android:color/white" />
</android.support.design.widget.AppBarLayout>
<android.support.v4.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
.....
</android.support.v4.widget.NestedScrollView>
</android.support.design.widget.CoordinatorLayout>
ich fast jede Lösung anprobiert Stapelüberlauf,
z.B.
fitsSystemWindows="true"
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
und viele mehr ..
ich es glaube nicht, das schwierig sein sollte. Alle Vorschläge oder Beispielprojekte werden geschätzt.
Haben Sie versucht, alle 'android entfernen: fitsSystemWindows =" true "'? –
Versuchen Sie, 'android: fitsSystemWindows =" true "' nur von 'CoordinatorLayout' zu entfernen. –
Ich habe versucht, 'android: fitsSystemWindows =" true "' von beiden zu entfernen, und nur von 'CoordinatorLayout' und' AppBarLayout' haben alle Kombinationen keinen Einfluss auf das Layout. –