fwiw just adding layoutAnimation tag to components causes them to correctly animate the first time they are displayed in the widget:
<LinearLayout android:id="@+id/test" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layoutAnimation="@anim/slide_left"> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Who would have thought marquees would become cool again"/> </LinearLayout> which is vaguely pleasing the first time the widget is added -- but i'd really like to be able to force the animation to play on content / visibility updates... (to create a kind of slide effect when content updates so it is less disorientating if the user happens to be looking at it). On Jun 2, 3:14 am, Advanceroot <advancer...@gmail.com> wrote: > Thank you for you help. It's hard to migrate our old home application to > cupcake now because of the animation. > Does Google want to support this feature in future? > > 2009/6/2 Jeff Sharkey <jshar...@android.com> > > > > > > To fix this, I define a MyViewAnimator (which most likely the > > ViewAnimator > > > in android) with @RemoteView tag in my project. Then use MyViewAnimator > > > class in the layout xml file. But it failed, there was a exception that > > > class loader cann't find MyViewAnimator class. > > > That's working correctly, because could be security issues if another > > process runs code from your MyViewAnimator class. > > > > So the problem is: how to use any animation in the remote view? Is it > > > possible adding some visual effects on app widget? > > > View-level animation isn't available in the current widget framework. > > Animations can be expensive, and showing them in widgets would impact > > the users battery life. > > > -- > > Jeff Sharkey > > jshar...@android.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---