I have a recyclervew
which has textwatcher
in every item. I am looking to update the recyclerview
after user finishes entering value in edittext
. Tried calling notifyDataSetChanged()
inside afterTextChanged()
method. But that doesn't work. Please help.
Asked
Active
Viewed 150 times
-2

Markus Kauppinen
- 3,025
- 4
- 20
- 30

Sachin Soma
- 3,432
- 2
- 10
- 18
-
6Show us your code. – Mershel Dec 10 '18 at 08:47
-
check this https://stackoverflow.com/questions/47975286/dynamic-form-with-repeating-form and this https://stackoverflow.com/questions/51454613/how-can-i-validate-recyclerview-adapter-textinputedittext-from-fragment/51454770#51454770 – AskNilesh Dec 10 '18 at 08:48
1 Answers
0
Just re initialize adapter
newItemsData = getItems()// If you want to changes list data
mAdapter = new RecylerViewAdapter(newItemsData);
or if you list is already changed just call
mAdapter.notifydatasetChanged()

Sachin Kasaraddi
- 597
- 5
- 12
-
not a very good ideea to create a new instance of your adapter, though – Tiberiu Neagu Dec 10 '18 at 09:06
-
Since in above question there is no code thought of suggesting possibilities for updating recylerview – Sachin Kasaraddi Dec 10 '18 at 09:09