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.
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
Post a Comment