• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Button, text boxes added at runtime with functionality

JohannN

Lurker
I am trying to add buttons and text boxes at runtime and have functionality added to it.
Got so far as adding the buttons and text boxes, but having a battle to actually add actions to it and having the app open again with the buttons, text boxes and their actions.
Anyone done something like this on Android already that can point me in the right direction please?
 
I never really wrote apps for Android, but I have for the Windows platform. To achieve what you want, one would typically place the objects at design time and change their 'visible' attribute at runtime. I don't think it's different for Android...
 
Thanks, I thought of going that direction, and then having a db to store specific variables for the controls as selected by the user. Also did something almost like it in Windows, but not sure it was the best way for Android.
 
Back
Top Bottom