Animation Styles

by skink » Mon, 02 Mar 2009 05:33:46 GMT


Sponsored Links
 hi,

i tried to use my popupWindow with some enter/exit animations - it has
setAnimationStyle() method for that purpose.

after some time i realized i cannot use my own custom animation styles
which is ok but a bit limiting. so i tried system ones:
R.style.Animation_Toast works ok, but R.style.Animation_Dialog
doesn't.

looking at xml definition files i found that Toast animation uses
simple alpha animation and Dialog animation is a set of alpha combined
wit scale animation.

is it a problem for WindowManager to deal with complex animations?

skink

--~--~---------~--~----~------------~-------~--~----~



Animation Styles

by skink » Mon, 02 Mar 2009 22:57:50 GMT


 


actually, today i tried all R.style.Animation_* animation styles and
none of them but R.style.Animation_Toast seems to work.

i cannot just belive that there is only one enter/exit animation that
can be used for PopupWindow or any other Window.

any hints?

thanks
skink
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Animation Styles

by skink » Tue, 03 Mar 2009 02:20:33 GMT


 



or maybe there are some other styles apart from R.style.Animation_*
that can i use?

unfortunately official docs are not very detailed on this topic...

thanks
skink
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Finding if softkeyboard is visible in landscape mode

Hi,

I wanted a way to find out whether a softkeyboard is visible at any given time.

If I set the windowSoftInputMode property to adjustResize,  I receive
resize events in the portrait mode (onSizeChanged gets called). I use
these events to find out whether the softkeyboard is visible or not.
But I get no resize events in the landscape mode (Android SDK 2.0). Do
I need to set some property explicitly to get these events in the
landscape mode.

Also when the application switches between landscape and portrait, the
application gets resize events. So to find out whether the keyboard is
actually visible, I would need to differentiate between the 2 resize
events.

So in short, is there a cleaner way (other than resize events) to find
out whether the soft keyboard is visible?
And if resize is the only way, how can I turn it on for landscape mode?

Thanks a lot in advance for the help.
-aniket

2. how to catch map zoom in/out event for Android 1.5

I can't give you a direct answer but the following might help: Create
an overlay to capture zoom level, canvas dimensions and map center
when the overridden Overlay.onDraw() is called. This is universal in
the sense that it will also capture users (or your app) manipulating
the app outside of the zoom controls.




> thanks.

3. Options for sound in games

4. Webview - XPath in Javascript

5. WebKit : how to scoll content from JavaScript ?

6. How to have fullscreen keyboard in portrait mode ?

7. Paging Axis user