0

I have a recylerview with edit text on its row which is populated with values coming from the server.

Now the user will be able to add some edit text and some not. My problem is that if user entered some values in edit text then I am able to get these values and other not. Lets say recylerview has 5 edit text and user entered values in 2 edit text then I have to receive these 5 edit text values into containing activity of adapter.is that possible or edit text is recommended on rv?

Tomasz Bawor
  • 1,447
  • 15
  • 40
  • check this answer https://stackoverflow.com/questions/51454613/how-can-i-validate-recyclerview-adapter-textinputedittext-from-fragment/51454770#51454770 and this https://stackoverflow.com/questions/47975286/dynamic-form-with-repeating-form – AskNilesh Sep 19 '18 at 11:53
  • Do findElementById and then use element.getText(); – Kaushal28 Sep 19 '18 at 11:55
  • i did it. i think u did not get my point @Kaushal28 – Mubashir abbas Sep 19 '18 at 16:26

1 Answers1

0

You can add a text change listener to the edit texts

refer: android on Text Change Listener

chetna
  • 94
  • 5
  • its not works for because i have to add these values into list on each key list size got increased and if user not change the text then i am not able to add these values into list – Mubashir abbas Sep 19 '18 at 16:25