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-window, and application. The toast is a single-window. Many others are application animations which use different entries in the style resource. On Mon, Mar 2, 2009 at 1:33 PM, skink <[email protected]> wrote: > > > > 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 <[email protected]> wrote: > > > hi Dianne, > > > > > > what style can i use? R.style.Animation_*? or some others? > > > > > > thanks > > > skink > > > > > > > > > > > > > -- > > Dianne Hackborn > > many thanks Dianne for your reply! > > i already tried to make my own styles, but they seem not to work. > > i found out why: WindowManager.LayoutParams docs say: > ---------------------- > public int windowAnimations > > A style resource defining the animations to use for this window. This > must be a *system resource*; it can not be an application resource > because the window manager does not have access to applications. > ---------------------- > > also i had the same problem when using PopupWindow and its > setAnimationStyle(int animationStyle) method. > > seems to me that it uses the same WindowManager.LayoutParams since no > custom animations at all. > > what is worse: from android.R.style.Animation_* only > android,R.style.Animation_Toast seems to work (both for Dialogs and > PopupWindows). please see my other posts: > > http://groups.google.com/group/android-developers/browse_thread/thread/913fe4f09f7dd830/e60fc95701c07987#e60fc95701c07987 > and > http://groups.google.com/group/android-developers/browse_thread/thread/11d0d68349ad2ca3/db0b8ad50db11d69#db0b8ad50db11d69 > . > > i just don't know what i'm doing wrong... > > thanks again, > skink > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

