मैं एक Toolbar
के साथ एक CoordinatorLayout
और एक TabLayout
AppBarLayout
अंदर है। इसके अतिरिक्त, मेरे पास 10 के अंदर ViewPager
है लेकिन ViewPager
के बाहर है।ViewPager की ऊंचाई उपलब्ध
समस्या यह है कि ViewPager's
ऊंचाई वास्तव में उपलब्ध होने की तुलना में बड़ी है, जिसके परिणामस्वरूप मेरे Fragment
का कुछ कटौती किया जा रहा है।
<?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:background="@color/lightGray"
android:fitsSystemWindows="true">
<android.support.design.widget.AppBarLayout
android:id="@+id/app_bar_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar2"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:popupTheme="@style/AppTheme.PopupOverlay"
app:layout_scrollFlags="scroll|enterAlways"/>
<android.support.design.widget.TabLayout
android:id="@+id/tabLayout"
android:scrollbars="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fillViewport="false"/>
</android.support.design.widget.AppBarLayout>
<android.support.v4.view.ViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
</android.support.design.widget.CoordinatorLayout>
और मेरा मतलब यह है कि जब मैं कहता हूं कि ViewPager
में गलत ऊंचाई है।
संभावित डुप्लिकेट [स्क्रीन के नीचे (एंड्रॉइड) के नीचे कटपेजर काटने के अंदर खंड का हिस्सा] (http://stackoverflow.com/questions/34407024/part-of-fragment-inside-viewpager-getting-cut- ऑफ-ऑन-डाउन-स्क्रीन-एंड्रॉइड) –