1
我有一個列表視圖選項卡,但我不能看到的最後一個元素,除非我滾動動作條(我認爲不應該是正常的)列表視圖中的選項卡不顯示最後一個元素
這裏是我的xml:
<android.support.design.widget.CoordinatorLayout 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/main_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context="com.example.dikelito.tabs.MainActivity">
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/appbar_padding_top"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:layout_scrollFlags="scroll|enterAlways"
app:popupTheme="@style/AppTheme.PopupOverlay">
</android.support.v7.widget.Toolbar>
<android.support.design.widget.TabLayout
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</android.support.design.widget.AppBarLayout>
<android.support.v4.view.ViewPager
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</android.support.design.widget.CoordinatorLayout>
我該如何解決這個問題?
問題是,工具欄未合攏。 –
您的第二張圖片顯示摺疊的工具欄。你是說當你向上滑動或沒有試圖隱藏標籤時沒有發生這種情況? – dshrout
只有當我滾動工具欄時,它纔會崩潰。 當我滾動列表視圖時,它不會摺疊。我讀過http://stackoverflow.com/a/17767691/4778015,但工具欄沒有崩潰,我不知道我在想什麼 –