是否可以以与通用搜索小部件动画相同的方式为我创建的 Android 小部件设置动画

发布于 2024-09-04 05:15:56 字数 358 浏览 13 评论 0原文

当您单击主屏幕上的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无声无音无过去 2024-09-11 05:15:56

不幸的是,此功能不适用于普通的 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文