I can't find attribute android:onTextChanged
in EditText when implement data-binding to my fragment xml. I have searched for the answer, and this one said it is supported out of the box.
I have set
data-binding {
enable = true
}
in my build.gradle, and my current build gradle is 3.5.3.
Here is a part of my xml:
<layout>
<data>
<variable
name="vm"
type=".ViewModel" />
</data>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context=".screens.hangouts.create_hangout_new.Step1FragmentNew">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_category"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tv_hangout_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@id/rv_category" />
<EditText
android:id="@+id/et_hangout_name"
android:background="@drawable/bkg_stroke_red"
android:layout_width="match_parent"
android:layout_height="30dp"
app:layout_constraintTop_toBottomOf="@id/tv_hangout_name" />
...