How to make a Button add another Button automatically?

Hello, I need to know how do I make a button to add another button, and so on.

For example, in the program start I have a single button on the screen. If user clicks on it, another button will be created. If he clicks the button that was created, another button will be created below the clicked button, and so on.

Please tell me how to do this by code.

I use Eclipse IDE, and my programs are made for run on Android 1.5.

Thanks for some help.

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by fpacocha
4 hours ago
Last post by brenda.dicki
4 hours ago
Last post by alicia36
1 hour ago
Last post by vcollier
2 hours ago
Playlist sync
Started by nbode
Last post by velda.reilly
3 hours ago
Last post by alayna54
3 hours ago
Last post by gracie98
2 hours ago