Avocarrot / json2view

Update native Android UI on the fly
MIT License
1.51k stars 279 forks source link

Get data from editText #38

Closed NamitaWani closed 6 years ago

NamitaWani commented 7 years ago

How to get data from edit text on Click of button, if EditText and button is passed from JSON.

And also is there any way to add DynamicId in SampleViewHolder dynamically rather than hardcoding it.

tsiougkosn commented 7 years ago

Hey there,

For your 1st question, you need to set the EditText In your ViewHolder, and as you have the reference in the EditText get the entered data.

You can't set the DynamicId dynamically, but if you like you can update the library to do that.

Best, Nikos