Yes, this is another question regarding SO. And yes, I have already gone through all these editorial issues. But this is a little specific.
UI:

Simple Android layout with edittext button and button below. When the text is smaller, the edittext view still covers the entire screen, leaving room for the button below.
As the user begins to enter text, edittext grows vertically to accommodate the text. At the same time, the button should also continue to push down to increase the edittext.
The user can vertically scroll the screen to view the full text.
User interface after entering meaningful text:

Here's the layout with edittext and button below:
<?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@color/background" android:clipToPadding="false" android:fadingEdge="none" android:fillViewport="true" android:padding="13dp" android:scrollbarStyle="outsideOverlay" > <RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1"> <ImageView android:id="@+id/someimage" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4dp" android:src="@drawable/page_white_text" /> <EditText android:id="@+id/some" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/someimage" android:background="@null" android:gravity="top" android:minLines="10" android:minHeight="50dp" android:textColor="#222222" android:textSize="15dp" android:typeface="serif" > <requestFocus /> </EditText> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:baselineAligned="true" android:layout_marginTop="5dp" android:padding="10dp" android:orientation="vertical" > <Button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Button" /> </LinearLayout> </RelativeLayout> </ScrollView>
It works more or less. But when I enter the big text, instead of pushing the button down. He follows him as:

Any help here is much appreciated. Thanks:)
source share