Skype如何做到Android视图置顶?

发布于 2024-12-14 04:01:23 字数 140 浏览 4 评论 0原文

我正在尝试查找用于在 Android 版 Skype 应用程序顶部制作静态栏的内置小部件的名称。有谁知道吗?我认为它增加了简单的按钮功能。

另外,在该栏中如何有一个按钮来更改用户的状态。它会弹出一个带有动画的漂亮气泡。这是内置在库或自定义中的东西吗?

I am trying to find the name of the built in widget that is used to make the static bar at the top of the Skype app for Android. Does anyone know? I think it adds easy button functionality.

Also, how within that bar they have a button to change the user's status. It pops up a pretty bubble with an animation. Is this something built into a library or custom?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

删除会话 2024-12-21 04:01:23

直到 3.0 才包含操作栏,因为它与平板电脑和智能手机使用的应用程序相同,并且在平板电脑上,菜单仍然存在,没有移动到操作栏应有的位置。

他们更有可能将每个活动内容放在滚动视图中,并将静态布局固定到页面顶部,

如果您使将使用顶部栏的活动扩展一个基本活动类,其中包括静态布局的处理程序每个页面的顶部,并单独定义布局以包含在每个活动的需要的布局中。

至于动画出来的气泡,它将是布局的一部分但隐藏,或者不是布局的一部分,但实际上是从 xml 中膨胀的。我不知道使它从中心放大的确切动画是什么。实际的气泡将是另一个布局,包裹在 FrameLayout 中,因此 i 很好地位于当前活动布局的顶部。

希望其中一些有帮助

The action bar wasn't included until 3.0 as its the same app thats used for both tablets and smartphones, and on a tablet, the menu is still present, not shifted to where the action bar should be.

Its more likely they have each activities content in a scrollview, and a static layout pinned to the top of the page,

If you make your activities that will be using the top bar extend a base activity class that includes handlers for the static layout at the top of each page, and define the layout separately to be included in each activity's layout where it is required.

As for the bubble that animates out, it will be part of the layout but hidden, or not part of the layout, but inflated from xml pragmatically. i dont know what the exact animation is that makes it zoom in from the center though. The actual bubble will be another layout, wrapped in a FrameLayout so i sits nicely on top of the current activities layout.

Hope some of this was helpful

烧了回忆取暖 2024-12-21 04:01:23

查看 ActionBarSherlock 的库,它可以让您在 Honeycomb 之前的设备上轻松实现操作栏。

Check out ActionBarSherlock for a library that lets you easily implement action bar on pre-Honeycomb devices.

挽清梦 2024-12-21 04:01:23

您所说的静态栏是操作栏。它作为标准包含在 API 3.0 版本中,但您也可以使用为您提供非常可能的小部件的库。

我使用 GreenDroid 库的修改版本...您还可以安装 GreenDroid 目录从市场申请来看看。

啊!当然,您可以使用样式更改颜色!

The static bar thar you are talking about is the action bar. It's included as standard in the version 3.0 of the API but you can also use libraries that provides you a very likely widget.

I use a modified version of GreenDroid library... You can also install the GreenDroid Catalog application from the Market to take a look.

Ah! of course you can change the color using styles!

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