look at the api demos samples. there are plenty of nice examples there.

2009/4/17 Edward Falk <[email protected]>

>
>
>
> On Mar 23, 12:27 pm, Lucius Fox <[email protected]> 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 frameworks/base/core/res/res/layout/alert_dialog.xml
>
> However, there are no elements named 'body".
>
> The structure of the xml file is:
>
> LinearLayout "parentPanel"
>  LinearLayout "topPanel"
>    LinearLayout "title_template"
>      ImageView "icon"
>      DialogTitle "alertTitle"
>    ImageView "titleDivider"
>  LinearLayout "contentPanel"
>    ScrollView "scrollView"
>      TextView "message"
>  FrameLayout "customPanel"
>    FrameLayout "custom"
>  LinearLayout "buttonPanel"
>    Button "button1"
>    Button "button3"
>    Button "button2"
>
> I'm guessing the FrameLayout "custom" is the one you want, but
> android.R.id.custom didn't resolve, so I'm stuck.
>
> IMHO, if you need to customize an alert dialog beyond setting the
> title and message, maybe it's time to start thinking about just
> implementing your own, subclassed from Dialog.
>
>
> And speaking of which, anybody know anything about embedding links in
> the text of an AlertDialog?  I tried adding
>
>   <a href="http://foo.com/docs/";>online documentation</a>
>
> to the string resource, and it displays correctly, but the user can't
> click it.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to