No the window will only execute an animation when it goes through the corresponding transition -- enter animations exit when the window is shown, exit when it is hidden, etc.
On Fri, Aug 10, 2012 at 4:17 AM, danaimset <danaim...@gmail.com> wrote: > Thanks a lot, Dianne! > > I believe it can be done by using the following method if you need to > provide some animation to PopupWindow: > http://developer.android.com/intl/ru/reference/android/widget/PopupWindow.html#update(android.view.View, > int, int, int, int) > > But in that case a programmer should implement its own animation cycle. > > > пятница, 10 августа 2012 г., 6:11:46 UTC+3 пользователь Dianne Hackborn > написал: >> >> The window manager limits the duration of animations, I believe to 10 >> seconds or so. >> >> Don't do this. It is not right to have a window animation that runs >> indefinitely. >> >> On Thu, Aug 9, 2012 at 3:03 PM, danaimset <dana...@gmail.com> wrote: >> >>> Hi Guys! >>> >>> I've face with problems with windowEnterAnimation. >>> I'm trying to animate popup window over the view for infinite. But it >>> seems that windowEnterAnimation has limitation of repeat count. >>> >>> >>> <https://lh4.googleusercontent.com/-6Dx_kkoUFkg/UCQzPlhdp1I/AAAAAAAAECI/LuyFiRy9R2M/s1600/launcher.png> >>> >>> >>> I'm using the following animation: >>> >>> <?xml version="1.0" encoding="utf-8"?> >>> <set >>> xmlns:android="http://schemas.**android.com/apk/res/android<http://schemas.android.com/apk/res/android>" >>> > >>> >>> <translate >>> android:duration="500" >>> android:fromYDelta="0" >>> android:interpolator="@**android:anim/bounce_**interpolator" >>> android:repeatCount="infinite" >>> android:repeatMode="reverse" >>> android:toYDelta="-20" /> >>> >>> </set> >>> >>> And the following animation style for the popup window: >>> >>> <style name="AnimationPopup"> >>> <item name="@android:**windowEnterAnimation">@anim/** >>> jump_up</item> >>> <item name="@android:**windowExitAnimation">@anim/**alpha</item> >>> </style> >>> >>> The animation is repeated only 10 times but not infinitely :( >>> >>> Maybe somebody could give some advice how this problem could be solved ? >>> >>> Thanks. >>> >>> Best Wishes, >>> Dan. >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Android Developers" group. >>> To post to this group, send email to android-d...@**googlegroups.com >>> >>> To unsubscribe from this group, send email to >>> android-developers+**unsubscr...@googlegroups.com >>> For more options, visit this group at >>> http://groups.google.com/**group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en> >>> >> >> >> >> -- >> Dianne Hackborn >> Android framework engineer >> hac...@android.com >> >> >> 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 android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer hack...@android.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en