Sunday, October 18, 2009

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

OK, thanks Mark - I didn't think about the IPC call thing.

I understand that supporting animations might end up with loads of
widgets singing and dancing all over the home screen screaming for
attention. However, I do think many widgets would benefit from the
functionality of showing some simple animation while some kind of
action (like a user-triggered synchronization) takes place.

Meanwhile, I guess I'll just plaster a "Wait" message over the
widget...

On Oct 18, 10:17 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> 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