Android: implementing sliding cards in widget

Posted by DroidIn.net on Stack Overflow See other posts from Stack Overflow or by DroidIn.net
Published on 2010-05-30T17:45:25Z Indexed on 2010/05/30 17:52 UTC
Read the original article Hit count: 169

Filed under:
|
|

I have a widget that periodically updates itself (hourly) to display top result of search query. I would like to extend it so it captures several top results and then loops through these. The best example would be Genie News and Weather widget for which I was unable to find a source code.

QUESTIONS:

  1. What would be a good way to implement the animation? I'm thinking ViewAnimator + timer, but is there maybe a better way, say FrameLayout + alerts? I'm already using AlertManager to periodically pull search results for the widget
  2. How bad such arraignment would affect phone's battery life?

© Stack Overflow or respective owner

Related posts about android

Related posts about animation