[android-beginners] Re: how to create a widget dynamically after setContenView

2008-05-08 Thread Megha Joshi
You can always create layouts programatically, and it is also possible to add widgets programatically to the layouts declared in xml files. All widgets provide constructors which you can use to create them programatically..There are methods corresponding to each xml attribute for any widget, so

[android-beginners] Re: how to create a widget dynamically after setContenView

2008-05-08 Thread dolan kundu
Hello, yes , you can add . On Thu, May 8, 2008 at 6:17 AM, rukiman [EMAIL PROTECTED] wrote: Ok I want to be able to create a widget dynamically after a setContentView. Here is what I have so far: public class Demo extends Activity { /** Called when the activity is first created. */