Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有人成功地将滑动抽屉放入片段中?
除非我在 dip 中指定抽屉的宽度和高度(这不适合支持大/小屏幕设备),否则我会收到未指定的尺寸异常
SlidingDrawer 的想法是它贴在屏幕边缘。由于您可以选择将片段放置在活动布局中的任何位置,因此在片段布局中使用它可能不是最好的主意。
isOpen()尽管您可以在考虑使用基本布局层次结构技巧之前将滑动抽屉滑动的位置设置为限制。
isOpen()
一旦我在这台机器上设置了eclipse,就必须确认这一点