Suppose there are two TextView in a layout. Is it possible to(just like referencing objects in Java) change text of one view and by reference it automatically changes of other? Yes, then how? I am beginner and don't know the correct term of it.
Asked
Active
Viewed 168 times
0
-
1Yes, It's Possible. You can check this: https://stackoverflow.com/questions/34799622/android-data-binding-with-a-custom-view – Faysal Ahmed Dec 26 '20 at 17:46
-
use dataBinding (ObservableField<>) – Ankit Aman Dec 26 '20 at 17:59