<LinearLayout
android:orientation="horizontal"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:gravity="center"
android:layout_width="match_parent"
android:layout_height="45dp">
<TextView
android:textSize="14sp"
android:text="姓名"
android:textColor="@color/app_text"
android:gravity="start"
android:layout_weight="3"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<EditText
android:textSize="14sp"
android:layout_marginLeft="10dp"
android:hint="请填写本人真实姓名"
android:layout_weight="1"
android:background="#00000000"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
效果如图: