Solved :). If anyone is interested the styles.xml should look like
this:

<resources>
        <style name="Animation.Popup" parent="android:Animation">
        <item name="android:windowEnterAnimation">@anim/popup_in</
item>
        <item name="android:windowExitAnimation">@anim/popup_out</
item>
    </style>
</resources>


On Aug 8, 11:56 am, loctarar <andrei.bu...@gmail.com> wrote:
> Hello! I have some issues with making PopupWindows animate when
> showing. The setAnimationStyle takes parameter a resource ID to what
> exactly? I took a look through the android resources and built my own
> animation style using the values/styles.xml as an example.
>
> My styles.xml file:
> <resources>
>     <style name="Animation" parent="android:Animation">
>     </style>
>     <style name="Animation.Popup">
>         <item name="android:windowEnterAnimation">@anim/popup_in</
> item>
>         <item name="android:windowExitAnimation">@anim/popup_out</
> item>
>     </style>
> </resources>
>
> where popup_* looks like this:
> <scale xmlns:android="http://schemas.android.com/apk/res/android";
>         android:fromXScale="0.0"
>     android:toXScale="1.0"
>     android:fromYScale="0.0"
>     android:toYScale="1.0"
>     android:pivotX="50%"
>     android:pivotY="50%"
>     android:duration="1000" />
>
> Then I call popupWindowObject.setAnimationStyle
> (R.style.Animation_Popup). How am I wrong? A solution to my problem
> would be very helpful as it would really ease my application
> development process (otherwise I'll need to find a solution to
> simulate a PopupWindow with scale effect).
>
> Thanks a lot in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to