<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/card_bottom_bg">

    <EditText
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
        android:ems="10"
            android:id="@+id/replyText"
        android:gravity="fill_horizontal|bottom|left|right|top"
        android:hint="@string/hint_comment"
        android:background="@android:color/transparent"
        android:layout_gravity="bottom|left|top"
        android:layout_alignParentTop="true"
        android:layout_alignParentLeft="true"
        android:minLines="2"
        android:textAlignment="textStart"
        android:autoLink="all"
        android:layout_toLeftOf="@+id/postReplyButton" />

    <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/action_reply"
        android:minHeight="24dp"
        android:gravity="right"
        android:layout_gravity="right"
        android:layout_alignParentBottom="false"
        android:layout_alignParentRight="true"
        android:layout_alignBottom="@+id/replyText"
        android:id="@+id/postReplyButton" />
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/card_bottom_bg">

    <EditText
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:ems="10"
        android:id="@+id/replyText"
        android:gravity="fill_horizontal|bottom|left|right|top"
        android:hint="@string/hint_comment"
        android:background="@android:color/transparent"
        android:layout_gravity="bottom|left|top"
        android:layout_alignParentTop="true"
        android:layout_alignParentLeft="true"
        android:minLines="2"
        android:textAlignment="textStart"
        android:autoLink="all"
        android:imeOptions="flagNoExtractUi|flagNoFullscreen"
        android:layout_toLeftOf="@+id/postReplyButton" />

    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/action_reply"
        android:minHeight="24dp"
        android:gravity="right"
        android:layout_gravity="right"
        android:layout_alignParentBottom="false"
        android:layout_alignParentRight="true"
        android:layout_alignBottom="@+id/replyText"
        android:id="@+id/postReplyButton" />
</RelativeLayout>
Stop the IME from doing nasty things to the post UI
Stop the IME from doing nasty things to the post UI
