android - Add views dynamically and get value from those views -


i need regarding adding new set of views , value views.

in example, want add 4 textviews on button click , open timepicker each view click , display new selected time on respective textview.

below screenshot of view.

enter image description here

if these 4 views fixed create xml , add them single holder set invisible. if mean dynamic either 4 or 99 views, i'd recommend recyclerview. plenty of examples on internet. if create recyclerview custom adapter easy respective data per view.

for future, please add more context question you've tried, result , why isn't expected result. broad question.


Comments

Popular posts from this blog

python - RuntimeError: can't re-enter readline -

python - PyInstaller UAC not working in onefile mode -

php - Need to store a large amount of data in session with CI 3 but on storing large data in session it is itself destorying automatically -