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

4x4 Matrix in Python -

python - PyInstaller UAC not working in onefile mode -

javascript - Building and updating array objects -