Ich benutze eine ScrollView in einem Layout und versuche, die neue CoordinatorLayout
aus der design support library zu verwenden.Bei Verwendung der CoordinatorLayout hat meine ScrollView eine falsche Größe
Meine Layout-Datei sieht wie folgt aus:
<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">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
...
</LinearLayout>
</ScrollView>
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.Toolbar ... />
</android.support.design.widget.AppBarLayout>
</android.support.design.widget.CoordinatorLayout>
Bei der Prüfung dieser die Scrollview nur einen Teil des Bildschirms einnimmt. Was schief gelaufen ist?