Sunday, October 18, 2009

[android-developers] Re: How to animate a drawable inside an App Widget?

westmeadboy wrote:
> I'm sure there must be a workaround. For example, having a drawable
> for each of the rotated positions and setting each drawable in turn
> (with some fixed time gap) on the same ImageView...

That would be very battery intensive. Bear in mind that the home screen
runs in a separate process than does your AppWidgetProvider (for
security reasons), and so *every* change to your UI results in a remote
IPC call. App widget UIs are designed to be updated every tens of
minutes, not every tens of milliseconds.

I recommend finding some alternative UI model than something that
requires an animation on an app widget.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books.html

--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate