Monday, March 19, 2012

[android-developers] Re: Window, WindowManager, PolicyManager classes - or - implementing a custom overlay

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment