Привет В настоящее время я работаю над макетом деталей пользователя и пытаюсь что-то достичь. Может ли кто-нибудь указать мне, как расширить текст edittext для перекрытия текста и сделать его похожим на простое один ряд? также как я могу выровнять его? Цените любую помощь.Как совместить textView и editText в android
скриншот:
XML:
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/app_name"
android:id="@+id/textView_data"
android:textSize="20sp"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:gravity="center_horizontal" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/textName"
android:layout_margin="0dp"
android:text="Full Name:"
android:textSize="20dp"
android:textStyle="bold" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Full Name"
android:scrollHorizontally="false"
android:id="@+id/textView_data2"
android:textSize="20sp"
android:paddingLeft="5dp"
android:maxLines="1"
android:inputType="textPersonName"
android:gravity="fill_vertical" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
ожидается выход, что я хочу, как это:
привет сэр, я обновить вопрос см. – iamcoder
Вы не можете перекрывать представления. –