是否可以以与通用搜索小部件动画相同的方式为我创建的 Android 小部件设置动画
当您单击主屏幕上的 Google 通用搜索框时,它会在屏幕上向上移动,直到到达顶部,然后打开搜索区域和键盘。
动画小部件在主屏幕“上”进行动画处理,因为它在其他小部件下方滑动。
如果将搜索框放在屏幕底部并将其他一些小部件放在较高的位置,则很容易看到这种行为。
我可以在我的 N1 和模拟器中看到这一点。这是它的外观的视频: http://clip2net.com/page/m17613/6147916
我可以这样做吗与我的小部件一起,或者这是谷歌为这个特定盒子专门制作的东西。
When you click the Google universal search box on the home screen it animates upwards on the screen until it has reached the top and from there the search area and keyboard is opened.
The animated widget is animated "on" the home screen because it slides under other widgets.
It is easy to see this behavior if one puts the search box at the bottom of the screen and place some other widgets higher up.
I can see this on my N1 and also in the emulator. Here's a video of how it looks:
http://clip2net.com/page/m17613/6147916
Is this possible for me to do with my widgets or is this something that Google has made special for this particular box.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,此功能不适用于普通的 appWidget。如果您确实想要在手机上播放动画,那么可以看看LiveWallpapers。
看看 http://d.android.com/resources/articles/动态壁纸.html
Unfortunately this functionality is not available for normal appWidgets. If you really want something that is animated on the phonetop then have a look at LiveWallpapers.
Have a look at http://d.android.com/resources/articles/live-wallpapers.html