Skip to content Skip to sidebar Skip to footer

How To Fix Edittext Error Possition In Linearlayout

I have problem with EditText error. error label possition is not correctly like image, how to fix it? My XML Layout:

Solution 1:

Maybe you should put editText in TextInputLayout like that

<android.support.design.widget.TextInputLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">
        <EditText
        style="@style/AppTheme.EditText.OneLine.WithBorder.Login"
        android:id="@+id/register_password"
        android:layout_marginTop="10dp"
        android:layout_weight="1"
        android:paddingEnd="5dp"
        android:hint="@string/password"
        android:inputType="textPassword" />
    </android.support.design.widget.TextInputLayout>

Post a Comment for "How To Fix Edittext Error Possition In Linearlayout"