I have an activity. This activity's layout has one ViewPager. This 
viewpager has five fragment by code. And I have five icons at the bottom of 
screen. They are located in tablayout.

Come to main point, When I open keyboard, the keyboard lift tablayout to 
top? How can solve it ?

*I tried the ways below . But they didn't work :*

   - android:windowSoftInputMode="adjustPan|adjustResize"
   - 
   
   android:isScrollContainer="false"
   - 
   
   android:fitsSystemWindows="true"
   

<?xml version="1.0" encoding="utf-8"?><RelativeLayout 
xmlns:android="http://schemas.android.com/apk/res/android";
    android:id="@+id/activityRoot"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <android.support.design.widget.AppBarLayout
        android:id="@+id/appBarLayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <include layout="@layout/toolbar" />
    </android.support.design.widget.AppBarLayout>

    <android.support.v4.widget.DrawerLayout 
xmlns:app="http://schemas.android.com/apk/res-auto";
        android:id="@+id/DrawerLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@+id/appBarLayout">
        <ScrollView
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:fillViewport="true"
            android:isScrollContainer="true"
            android:layout_weight="1">
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <android.support.v4.view.ViewPager
                android:id="@+id/viewpager"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:transitionGroup="false"
                android:layout_weight="1" />

            <android.support.design.widget.TabLayout
                android:id="@+id/tabs"
                style="@style/MyCustomTabLayout"
                android:layout_width="match_parent"
                android:layout_height="?actionBarSize"
                android:background="@drawable/bottom_bar_background"
                app:tabMode="fixed"
                app:tabPaddingEnd="0dp"
                app:tabPaddingStart="0dp"
                app:tabTextAppearance="@style/MyCustomTabText" />
        </LinearLayout>

        </ScrollView>
        <include
            layout="@layout/navigation_drawer_menu"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_above="@+id/tabs"
            android:layout_gravity="start"
            android:layout_marginBottom="?actionBarSize" />
    </android.support.v4.widget.DrawerLayout>

</RelativeLayout>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/71d7c62f-374d-4699-b8d1-f1783cdd1c5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to