Я не могу найти атрибут android:onTextChanged
в EditText при реализации привязки данных к моему фрагменту xml. Я искал ответ и этот сказал, что поддерживается из коробки. я установил
data-binding {
enable = true
}
в моем build.gradle, а моя текущая сборка 3.5.3.
Вот часть моего 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" />
...
onTextChanged
? - person Dung Nguyen   schedule 31.12.2019