[android-developers] Re: How is android's AlertDialog layout define?

2009-04-16 Thread Edward Falk
On Mar 23, 12:27 pm, Lucius Fox lucius.fo...@gmail.com wrote: Can you please tell me where I can the layout xml file for theAlertDialog? I try to do a 'grep for 'alert1' in all the files in the source tree, it does not return anything. I believe it's

[android-developers] Re: How is android's AlertDialog layout define?

2009-04-16 Thread Arnaud Weber
look at the api demos samples. there are plenty of nice examples there. 2009/4/17 Edward Falk ed.f...@gmail.com On Mar 23, 12:27 pm, Lucius Fox lucius.fo...@gmail.com wrote: Can you please tell me where I can the layout xml file for theAlertDialog? I try to do a 'grep for 'alert1' in

[android-developers] Re: How is android's AlertDialog layout define?

2009-04-04 Thread iPaul Pro
LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=wrap_content LinearLayout android:orientation=vertical android:id=@+id/ topPanel android:layout_width=fill_parent android:layout_height=wrap_content android:layout_marginLeft=14px

[android-developers] Re: How is android's AlertDialog layout define?

2009-03-23 Thread Lucius Fox
Can you please tell me where I can the layout xml file for the AlertDialog? I try to do a 'grep for 'alert1' in all the files in the source tree, it does not return anything. Thanks for tips. On Sun, Mar 22, 2009 at 11:56 AM, Dianne Hackborn hack...@android.com wrote: The layout is an xml

[android-developers] Re: How is android's AlertDialog layout define?

2009-03-22 Thread Dianne Hackborn
The layout is an xml file, and an implementation detail. If you want to have your own kind of alert dialog, just subclass from Dialog and make it yourself. Given how customizable AlertDialog is (with the ability to stick in your own layouts and such), I think trying to do something beyond what

[android-developers] Re: How is android's AlertDialog layout define?

2009-03-22 Thread sm1
usually your layout is defined in an xml file (in res/layout) and in your Java-like Android code you can reference it so: d.setContentView(R.layout.dialog_view); where d is an instance of AlertDialog. and dialog_view.xml could contain: ?xml version=1.0 encoding=utf-8? RelativeLayout

[android-developers] Re: How is android's AlertDialog layout define?

2009-03-22 Thread Lucius Fox
Thank you for both of your answers. In the android source, it has: * If you * want to display a more complex view, look up the FrameLayout called body * and add your view to it: * * pre * FrameLayout fl = (FrameLayout) findViewById(R.id.body); * fl.add(myView, new