Windows can only be animated with XML animation resources. (This is because the window manager runs in a separate process, so it needs to be able to load the animations objects itself to run them there.)
On Mon, Mar 19, 2012 at 6:21 AM, momo <[email protected]> wrote: > So the solution to adding a new "layer" via WindowManager is pretty simple: > > WindowManager.LayoutParams wlp = new WindowManager.LayoutParams(); > // ... position, dimension, ets > WindowManager wm = (WindowManager) getSystemService("window"); > wm.addView(someView, wlp); > > However, I'm unable to apply any programmatic animations to a view added > in this manner. WindowManager.LayoutParams accepts animation resources, > but this is not as flexible as I need. > > Is there a trick to using animation to views added to a WindowManager, or > is this not possible? > > TYIA > > -- > 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 > -- 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, and so won't reply to such e-mails. 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

