Yes the bitmaps are different, not only the angle changes (there is also some kind of reflection effect on it and patterns). So rotating the same image (which I guess is your suggestion) won't do the trick here. I am also thinking about using the same fade in fade out effect on another animation where a glowing bowl appears and hides in a a kind of slow 'puls rythm' - here also the bitmaps are different and it won't do with hiding in&out the same bitmap....
On 20 Mar, 18:35, Justin Anderson <[email protected]> wrote: > > Thanks for the response but the animation is a set of bitmaps that I > > show, it can't be done with the Android shapes. > > Animations don't have to be done on Android Shapes... They can be done on > any view, like an ImageView. Is your set of bitmaps different in any way > other than the rotation? If the only difference in the frames is the > rotation then you can use the approach I described. > > Thanks, > Justin Anderson > MagouyaWare Developerhttp://sites.google.com/site/magouyaware > > On Tue, Mar 20, 2012 at 11:23 AM, Serdel <[email protected]>wrote: > > > Thanks for the response but the animation is a set of bitmaps that I > > show, it can't be done with the Android shapes. So I need this > > approach. However I was thinking if I can find a way to use the alfa > > approach in my need. Or anything that would bring a similar fade-in/ > > out effect Is it possible? > > > On 20 Mar, 17:36, Justin Anderson <[email protected]> wrote: > > > Is there any particular reason you are using a frame-based animation? I > > > haven't done any frame-based animations, but I know you could accomplish > > > the same (or very similar) thing using an AnimationSet defined in XML. > > > > You could then specify a rotation to the image as well as a fade in/out > > > with alpha... > > > > As a simple example, this could go in res/anim and be called something > > like > > > spin_fade_in.xml: > > > > <?xml version="1.0" encoding="utf-8"?> > > > <set xmlns:android="http://schemas.android.com/apk/res/android"> > > > <alpha > > > adroid:fromAlpha="0.0" > > > android:toAlpha="1.0" > > > android:duration="500" > > > android:startOffset="0" > > > > /> > > > > <scale android:fromXScale="1" > > > android:toXScale=".85" android:fromYScale="1" > > > android:toYScale=".85" android:duration="100" > > > android:startOffset="0" android:pivotX="50%" > > > android:pivotY="50%" /> <rotate > > > android:fromDegrees="0" android:toDegrees="360" > > > android:pivotX="50%" android:pivotY="50%" > > > android:duration="500" android:startOffset="0" /> > > > <scale android:fromXScale=".85" android:toXScale="1" > > > android:fromYScale=".85" android:toYScale="1" > > > android:duration="100" android:startOffset="400" > > > android:pivotX="50%" android:pivotY="50%" /> > > > </set> > > > > Thanks, > > > Justin Anderson > > > MagouyaWare Developerhttp://sites.google.com/site/magouyaware > > > > On Tue, Mar 20, 2012 at 10:24 AM, Serdel <[email protected] > > >wrote: > > > > > Hi, > > > > > I am running an animation of a spinning star and I would like to add > > > > some fade-in/fade-out effects. I am loading the animation in Java by > > > > making the AnimationDrawable objects, and adding the bitmaps as frames > > > > and then setting it to an ImageView using setBackgroundDrawable. I > > > > there a way I can add fade-in fade-out effects to this animation? I > > > > couldn't find any help on that subjects so far. > > > > > -- > > > > 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 > > > -- > > 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 > > -- 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

