Is there a way to animate on a Home Widget?

前端 未结 5 1962
陌清茗
陌清茗 2020-12-01 09:51

I want to use an animation on a Home page Widget, i.e. an AppWidgetProvider. I was hoping to use the \"Frame Animation\" technique:

http://developer.android.com/gui

5条回答
  •  遥遥无期
    2020-12-01 10:39

    I am currently creating an widget that "need" sprite animation, and I have put a blog post on how to animate home widget. Yes, it is expensive to do, so I do it only when the widget is needed. BTW, original android animation is not supported in remote views.

    Edit:

    Demo Project is up.

提交回复
热议问题