[android-developers] Re: Animate an AlertDialog

2009-03-03 Thread Dianne Hackborn
Hm, maybe support for application animations wasn't added until after 1.0. To be honest I don't remember. On Tue, Mar 3, 2009 at 11:00 AM, skink wrote: > > > > Dianne Hackborn wrote: > > That comment is out of data, the window manager can use styles from > > applications. > > > > Sorry about the

[android-developers] Re: Animate an AlertDialog

2009-03-03 Thread skink
Dianne Hackborn wrote: > That comment is out of data, the window manager can use styles from > applications. > > Sorry about the lack of documentation. For now you'll need to look at the > source resources to see how they are constructed and do the same thing. > Note that there are two main typ

[android-developers] Re: Animate an AlertDialog

2009-03-02 Thread Dianne Hackborn
That comment is out of data, the window manager can use styles from applications. Sorry about the lack of documentation. For now you'll need to look at the source resources to see how they are constructed and do the same thing. Note that there are two main types of window animations: single-windo

[android-developers] Re: Animate an AlertDialog

2009-03-02 Thread skink
also for completeness/symetry it would be nice if Dialog and/or Window had setAnimationStyle(int) method as PopupWindow has. now (if i didn't miss something) i need to: 1. w = dialog.getWindow() 2. a = w.getAttributes() 3. a.windowAnimations = R.style.style 4. w.setAttributes(a) which isn't very

[android-developers] Re: Animate an AlertDialog

2009-03-02 Thread skink
Dianne Hackborn wrote: > You should make your own, with reference to animation resources that > describe the actual animations you want. > > On Mon, Mar 2, 2009 at 10:47 AM, skink wrote: > > hi Dianne, > > > > what style can i use? R.style.Animation_*? or some others? > > > > thanks > > skink >

[android-developers] Re: Animate an AlertDialog

2009-03-02 Thread Dianne Hackborn
You should make your own, with reference to animation resources that describe the actual animations you want. On Mon, Mar 2, 2009 at 10:47 AM, skink wrote: > > > > On 19 Sty, 18:12, "Dianne Hackborn" wrote: > > > But for an alert dialog, you probably want to animate the window itself > not > >

[android-developers] Re: Animate an AlertDialog

2009-03-02 Thread skink
On 19 Sty, 18:12, "Dianne Hackborn" wrote: > But for an alert dialog, you probably want to animate the window itself not > the contents inside.  You do this by setting a style resource on the > WindowManager.LayoutParams.windowAnimation. > hi Dianne, what style can i use? R.style.Animation_*

[android-developers] Re: Animate an AlertDialog

2009-01-20 Thread Android_Neha
Hi Dianne, Is this the way also to provide in and out animations to dialogs? Or Can you suggest how we can add in and out animations to dialogs/ activities to provide a transition effect ? On Jan 19, 11:12 pm, "Dianne Hackborn" wrote: > Call it after the requestFeature() calls. > > But for an

[android-developers] Re: Animate an AlertDialog

2009-01-19 Thread Dianne Hackborn
Call it after the requestFeature() calls. But for an alert dialog, you probably want to animate the window itself not the contents inside. You do this by setting a style resource on the WindowManager.LayoutParams.windowAnimation. On Mon, Jan 19, 2009 at 9:06 AM, Tom Medhurst wrote: > > So any i

[android-developers] Re: Animate an AlertDialog

2009-01-19 Thread Tom Medhurst
So any ideas how I can call: getDecorView() without getting the error: "AndroidRuntimeException: requestFeature() must be called before adding content" ...? On Jan 12, 8:39 pm, Tom Medhurst wrote: > I have an AlertDialog box instance I created from AlertDialog.Builder > and I want to animate it