Adding/Removing views in Windowmanager with Animation

1,585 views
Skip to first unread message

Roopa

unread,
Dec 2, 2009, 6:13:48 AM12/2/09
to android-platform
Hello,

I am trying to develop a service in which a view gets displayed using
WindowManager.
On Fling/Swipe I need to change the view with animation.
The current view on display should slide out and new one should slide
in.

Can i add/remove views with some animation to windomanager.


Please advice. Thanks in advance.

raj darbar

unread,
Jul 18, 2014, 9:13:10 AM7/18/14
to android-...@googlegroups.com
Ya Sure you can add the View to WindowManager on Shake , Touch etc, but for that you have to manually code in your Project.

   Such as First you have to add the non touchable View TYPE_SYSTEM_ALERT or TYPE_PHONE and after getting onTouchEvent  you should remove that view and again add the newer view with TYPE_SYSTEM_OVERLAY.
 
   It is right now working for me. 
 
 
 
Reply all
Reply to author
Forward
0 new messages