<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="info.androidhive.materialtabs.fragments.OneFragment">
<ListView
android:id="@+id/olaylar_liste"
android:layout_width="match_parent"
android:layout_height="wrap_content"></ListView>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
最后一项未显示.请帮忙.
Ced*_*iga 38
将此行添加到Viewpager
android:layout_marginBottom="?attr/actionBarSize"
Run Code Online (Sandbox Code Playgroud)
因为你底部没有的尺寸正好是你的尺寸ToolBar,
(using new Android Design)当你到达底部时应该隐藏它
<android.support.v4.view.ViewPager
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="?attr/actionBarSize"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
Run Code Online (Sandbox Code Playgroud)
小智 0
尝试这个。
<ListView
android:id="@+id/lv_content"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/bg_listview"
android:dividerHeight="1dp">
Run Code Online (Sandbox Code Playgroud)