> It would of course be better to have an activity that you can style
> like an AlertDialog.

But an AlertDialog is not an Activity and an Activity is not an
AlertDialog. These classes represent two distinct concepts and should,
therefore, have different styles so users can immediately know
visually what they're dealing with.

Cheers,
Justin
Android Team @ Googl

On Aug 25, 8:11 am, webmonkey <[EMAIL PROTECTED]> wrote:
> Hello Hackbod,
>
> I indeed looked at the API demo you refer to, but I want to get the
> same type of buttons panel at the bottom so that I am consistent with
> the overall platform. The look of the dialog and the panel at the
> bottom has changed a couple of times, and by using AlertDialog I don't
> have to worry about any future changes. Plus, I don't have to build
> everything myself.
>
> My solution right now is to use an activity with a transparent theme
> and then call showDialog in onCreate. This way I can still use
> AlertDialog. It now works like the Edit Bookmarks activity behaviour I
> was looking for.
>
> It would of course be better to have an activity that you can style
> like an AlertDialog. I have looked at the classes
> com.android.internal.app.AlertActivity and
> com.android.internal.app.AlertController which seem to do what I want,
> but I obviously cannot use them. Hope you will make these public in
> the future.
>
> On Aug 25, 9:03 am, hackbod <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > If you want an alert that looks like a dialog, you can use
> > andoid:theme="@android:style/Theme.Dialog" in your manifest.  There is
> > an example in API demos for doing this.
>
> > If you are specifically looking for the functionality of AlertDialog
> > in an activity, unfortunately for 1.0 we are not going to have time to
> > implement this.
>
> > On Aug 22, 9:36 am, webmonkey <[EMAIL PROTECTED]> wrote:
>
> > > How do I create a dialog activity that looks exactly the same as when
> > > you build a dialog with the AlertDialog class, including the buttons
> > > panel at the bottom.
>
> > > Basically, I want the same sort of activity that you get when you add
> > > a Bookmark in the Browser app.
>
> > > I checked the APIDemos > Activity > Dialog sample but it is missing
> > > the panel with the buttons.
>
> > > Thanks- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to