效果图
其实很简单 不要想的太复杂了
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@color/white">
<ScrollView
android:layout_height="fill_parent"
android:layout_width="match_parent" >
<LinearLayout
android:orientation="vertical"
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@mipmap/ic_launcher_round">
</LinearLayout>
</ScrollView>
<RelativeLayout
android:gravity="center"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_marginBottom="0dip"
android:background="@mipmap/ic_launcher_round">
<LinearLayout
android:layout_height="wrap_content"
android:id="@+id/linearLayout2"
android:gravity="center_horizontal"
android:layout_width="fill_parent"
android:layout_margin="10dip">
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
<EditText
android:id="@+id/editAccount"
android:layout_width="250dip"
android:layout_height="wrap_content"
android:singleLine="true"></EditText>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>