2

This is my layout:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <include layout="@layout/include_toolbar_actionbar"/>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/background"
        android:paddingTop="@dimen/keyline_5"
        android:paddingRight="@dimen/keyline_2"
        android:paddingLeft="@dimen/keyline_2"
        android:orientation="vertical">

        <TextView
            android:id="@+id/title"
            style="@style/FlatCardTitle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="TITLE" />

        <EditText
            android:id="@+id/content"
            android:inputType="textMultiLine"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/keyline_1"
            android:layout_marginBottom="@dimen/keyline_4"
            android:lines="16"
            android:minLines="4"
            android:maxLines="16"
            android:scrollbars="vertical"/>

    </LinearLayout>

</LinearLayout>

<include layout="@layout/include_visibility_right_editor" />

</RelativeLayout>

The layout "include_visibility_right_editor" must be always at the bottom. Unfortunately, when the soft keyboard appears, all the layout is pushing up...

Thank for your help guys!

anthony
  • 7,653
  • 8
  • 49
  • 101
  • did u try adding android:windowSoftInputMode="adjustNothing in the activity tag in your manifest? – Miriana Itani Aug 26 '15 at 14:50
  • possible duplicate of [Android: How do I prevent the soft keyboard from pushing my view up?](http://stackoverflow.com/questions/4207880/android-how-do-i-prevent-the-soft-keyboard-from-pushing-my-view-up) – Geraldo Neto Aug 26 '15 at 15:49
  • Possibly duplicate of http://stackoverflow.com/questions/4207880/android-how-do-i-prevent-the-soft-keyboard-from-pushing-my-view-up – Geraldo Neto Aug 26 '15 at 15:49

1 Answers1

0

Use the following property in manifest activity declaration:

android:windowSoftInputMode="adjustNothing"

Also check other options according to your requirement

Rick Smith
  • 9,031
  • 15
  • 81
  • 85
Pavan
  • 5,016
  • 1
  • 26
  • 30