• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

TextInputLayout text is overwriting TextInputEditText text

The first one is fine. What could be wrong?

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">

<Spinner
android:id="@+id/spinnerFreq"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintEnd_toStartOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toTopOf="@id/textInputLayout2"/>

<com.google.android.material.textfield.TextInputLayout
android:id="@+id/textInputLayout2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@id/spinnerFreq"
app:layout_constraintBottom_toBottomOf="@id/textInputLayout3"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:hint="@String/end_freq_text"
android:textColorHint="@android:color/black">

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/editTextEndFreq"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@String/end_freq_edit_text"
android:textColor="@android:color/black" />
</com.google.android.material.textfield.TextInputLayout>

<com.google.android.material.textfield.TextInputLayout
android:id="@+id/textInputLayout3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@id/textInputLayout2"
app:layout_constraintBottom_toBottomOf="@id/textInputLayout4"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:hint="@String/length_seconds_text"
android:textColorHint="@android:color/black">

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/editTextLength"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@String/length_seconds_edit_text"
android:textColor="@android:color/black" />
</com.google.android.material.textfield.TextInputLayout>

<com.google.android.material.textfield.TextInputLayout
android:id="@+id/textInputLayout4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@id/textInputLayout3"
app:layout_constraintBottom_toBottomOf="@id/textInputLayout5"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:hint="@String/min_freq_text"
android:textColorHint="@android:color/black">

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/editTextMinFreq"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@String/min_freq_edit_text"
android:textColor="@android:color/black" />
</com.google.android.material.textfield.TextInputLayout>

<com.google.android.material.textfield.TextInputLayout
android:id="@+id/textInputLayout5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@id/textInputLayout4"
app:layout_constraintBottom_toBottomOf="@id/textInputLayout"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:hint="@String/max_freq_text"
android:textColorHint="@android:color/black">

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/editTextMaxFreq"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@String/max_freq_edit_text"
android:textColor="@android:color/black" />
</com.google.android.material.textfield.TextInputLayout>

<com.google.android.material.textfield.TextInputLayout
android:id="@+id/textInputLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@String/start_freq_text"
android:textColorHint="@android:color/black"
app:layout_constraintTop_toBottomOf="@id/textInputLayout5"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/editTextStartFreq"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@String/start_freq_edit_text"
android:textColor="@android:color/black" />
</com.google.android.material.textfield.TextInputLayout>

</androidx.constraintlayout.widget.ConstraintLayout>
 
Last edited:
Back
Top Bottom