In meiner App bin ich mit CoordinatorLayout.Wenn ich versuche, viel zusätzlichen Speicherplatz scrollen ist verfügbar.Und ich habe das geändert, indem Einstellung Layout-Koordinator Höhe.Aber wenn ich versuche, die Registerkarte zu ändern zeigt zusätzlichen Platz.Wenn ich in das Formular Tab1, Tab2, Tab3 klicke, gibt es kein Problem. Aber wenn ich versuche, mit Tab3, Tab2, Tab1 in Tab3 und Tab2 viel zusätzlichen Platz zu machen.Extra Platz mit Koordinator-Layout beim Scrollen
1) In my main activity am using Observable scrollview.
<?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:id="@+id/kudix_cordinator"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:fitsSystemWindows="false"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:layout_collapseMode="pin">
<android.support.design.widget.CollapsingToolbarLayout
android:id="@+id/htab_collapse_toolbar"
android:layout_width="match_parent"
android:layout_height="250dp"
android:layout_marginBottom="0dp"
app:contentScrim="?attr/colorPrimary"
app:titleEnabled="false">
<ImageView
android:layout_width="match_parent"
android:layout_height="@dimen/parallax_image_height"
android:background="@drawable/ic_launcher"
android:fitsSystemWindows="true"
android:scaleType="centerCrop"
app:layout_collapseMode="parallax" />
<android.support.design.widget.TabLayout
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
app:tabIndicatorColor="@android:color/white"
app:tabSelectedTextColor="@android:color/white"
app:tabTextColor="@color/white" />
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
<android.support.v4.view.ViewPager
android:id="@+id/kudix_club_viewpager"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="10dp"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
/>
</android.support.design.widget.CoordinatorLayout>
Jedes Tab-Fragment enthält verschiedene UI-Typen.
Was meinen Sie wirklich mit extra Raum? Kannst du einen Screenshot erstellen? –
unten gibt es viel Platz –
Es wird normalerweise ein Leerzeichen sein, wenn Sie keinen Inhalt haben, um es zu füllen! Ist das nicht normal? –