> LinearLayout layout = new LinearLayout(this); > Panel panel = new Panel(this); > Button button = new Button(this); > layout.addView(panel); > layout.addView(button); > setContentView(panel);
You're creating a LL, adding the panel and button to it, but setting the content view to the panel instead of the LL. Since you never add the button to the panel, it won't show. As far as the emulator slowness goes, I'd suggest testing on a real device unless you need to do QA on different screen configurations. Cheers, - C -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en