安卓侧边栏

发布于 2024-09-28 07:49:48 字数 224 浏览 0 评论 0原文

我一直在使用 Android 版 Firefox,并且非常喜欢使用侧边栏来保存快捷方式图标等。我将如何自己创建一个具有以下属性的类似栏:

  1. 当我向一个方向滑动时逐渐显示
  2. 当我向另一个方向滑动时逐渐隐藏
  3. 可以是自定义宽度
  4. 我可以动态地将布局注入其中,也可以保持静态内容

有可用的开源代码吗?如果没有,我将使用什么方法来创建它?

I've been using firefox for Android and really like the use of the sidebar to hold shortcut icons and the like. How would I go about creating a similar bar myself with the following attributes:

  1. progressively revealed as I swipe in one direction
  2. progressively hides as I swipe in the other direction
  3. can be a custom width
  4. I can dynamically inject layout in to it or it can hold static content

Is there any open source code available? If not, what approach would I use to create this?

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

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

发布评论

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

评论(2

幽梦紫曦~ 2024-10-05 07:49:48

听起来就像您在描述图库控件。 ApiDemos 项目中有一些示例 这里

Sound like you're describing a Gallery control. There are some examples in the ApiDemos project here.

傲娇萝莉攻 2024-10-05 07:49:48

第一部分可以通过使用ListView来解决。第二部分我还不知道。我也在寻找这样的组件。

The first part can be solved by using a ListView. The second part I don't know yet. I'm looking for such a component as well.

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