Android:如何防止 SlidingDrawer 使手柄居中?

发布于 2024-10-02 04:50:22 字数 42 浏览 0 评论 0原文

我想为抽屉把手指定我自己的自定义布局,但它一直居中,而我不希望它居中!

I want to specify my own custom layout for the drawer handle, but it keeps centering it, and I don't want it centered!

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

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

发布评论

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

评论(1

聆听风音 2024-10-09 04:50:22

根据您用于句柄的 View 类型,您可能会使用 android:layout_gravityandroid:gravity 属性来定位正确地。

Depending on the type of View you're using for the handle, you might look to the android:layout_gravity and android:gravity attributes to position it correctly.

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