滑动抽屉手柄的位置?

发布于 2024-10-11 00:02:50 字数 183 浏览 0 评论 0原文

我想要两个重叠的滑动抽屉(跨越整个应用程序窗口),其手柄并排,以便用户可以轻松打开两个抽屉。 然而,手柄似乎总是水平居中放置(对于垂直的 SlidingDrawer),因此手柄会发生碰撞。我为父级尝试了 FrameLayout 和relativelayout,但是像 android:layout_alignRight 这样的布局选项似乎被句柄忽略了。

I would like to have two overlapping SlidingDrawers (spanning the whole application window) with their handles side by side so that the user can open both drawers easily.
However, it seems that the handle is always positioned horizontally centered (for a vertical SlidingDrawer) so that the handles collide. I tried both FrameLayout and RelativeLayout for the parent, but layout options like android:layout_alignRight seem to be ignored for the handles.

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

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

发布评论

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

评论(1

药祭#氼 2024-10-18 00:02:50

这似乎不可能。我决定不使用 SlidingDrawers 而是使用“普通”按钮来打开其他视图。

This seems not to be possible. I decided not to use SlidingDrawers but "normal" buttons which will open the additional views.

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