I have 3 TextInputEditText and I want to focus on the next field by pressing the "next" key of my keyboard. The problem is that I can't go to another TextInputEditText because of the "Source is black " error:
How I can bypass this error and go forward on the next field when I press "next" button of my keyboard?
Here is my code:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintTop_toBottomOf="@id/card2_title">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="horizontal">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/corrente_i_1_til"
style="@style/AppTheme.TextInputLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_large"
app:errorEnabled="false">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/corrente_i_1_value"
style="@style/AppTheme.TextInputEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="number" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/corrente_i_2_til"
style="@style/AppTheme.TextInputLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_large"
app:hintEnabled="false"
app:errorEnabled="false">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/corrente_i_2_value"
style="@style/AppTheme.TextInputEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="number" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/corrente_i_3_til"
style="@style/AppTheme.TextInputLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_large"
app:errorEnabled="false">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/corrente_i_3_value"
style="@style/AppTheme.TextInputEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="number" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>