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
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
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
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
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
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
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
7 matches
Mail list logo