I have been thinking about adding a button to a View which when pressed adds another view on the bottom. It would resemble the Clock application that comes preinstalled in which you push a view in form of an alarm which is then added to a list.
Does anyone have any experience with how to implement that?
I have been thinking about adding a button to a View which when pressed
Share
Have a look at the documentation for ListView, particularly the
setAdapter()method. You’ll want to have some sort of backing collection most likely as the adapter, such as anArrayAdapter, to which you can add new items, and have them populate into the list.