Я использовал TextInputLayout для EditText, и рядом с ним есть TextView. Я вижу, что между TextInputLayout и TextView есть дополнительное пространство. Я хочу удалить лишнее пространство. Фотографии прилагаются с TextInputLayout и без него. Я включил границы в вариантах разработчика, поэтому pic может выглядеть запутанным, но информативным.Дополнительное пространство между TextInputLayout и TextView
Ниже раскладка:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.design.widget.TextInputLayout
android:id="@+id/layoutCurrentPW"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
app:errorEnabled="true">
<EditText
android:id="@+id/editTextCurrentPassword"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginLeft="50dp"
android:layout_marginRight="50dp"
android:layout_marginTop="30dp"
android:background="@drawable/edit_text_border_drawable"
android:gravity="center"
android:hint="@string/current_password"
android:layout_gravity="bottom"
android:inputType="textPassword"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="@color/black" />
</android.support.design.widget.TextInputLayout>
<TextView
android:id="@+id/textForgotPassword"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:clickable="true"
android:text="@string/forgot_password"
android:textSize="17sp" />
</LinearLayout>
хорошей информации. +1 – cgr