edittext must move up on the top of the keyboard without moving other views

Viewed 1156

[This is the image i need to move up only edittext not the logo ][1]edittext appearing on the top of the keyboard after setting windowSoftInputMode but other views also moving up. is their any way to move only edittext .Thanks in advance

[1]: https://i.stack.imgur.com/NEpf3.png`

<ScrollView
    android:id="@+id/scroll"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_alignParentStart="true"
    android:layout_alignParentTop="true"
    android:orientation="vertical">

    <LinearLayout
        android:id="@+id/linear"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:layout_marginTop="50dp"
            android:src="@drawable/logo_light"
            android:text="LOGO"
            android:textColor="@color/black"
            android:textSize="100dp" />
    </LinearLayout>
</ScrollView>

<LinearLayout
    android:id="@+id/ll_send_message"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_marginBottom="50dp"
    android:orientation="horizontal">

    <EditText
        android:id="@+id/editMessage"
        android:layout_width="0dp"
        android:layout_height="fill_parent"
        android:layout_gravity="center_vertical|center_horizontal"
        android:layout_weight="5"
        android:background="@color/white"
        android:gravity="center"
        android:inputType="textMultiLine|textCapSentences"
        android:maxLines="5"
        android:hint="EDIT TEXT"
        android:minLines="3"
        android:textColorHint="@color/black"
        android:scrollHorizontally="false"
        android:textColor="@color/white" />

    <Button
        android:id="@+id/buttonSend"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical|center_horizontal"
        android:background="@color/black"
        android:gravity="center"
        android:text="send"
        android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout>

`

2 Answers
Related