片段中的滑动抽屉
有人成功地将滑动抽屉放入片段中吗?
除非我指定抽屉的宽度和高度(这对于支持大/小屏幕设备并不理想),否则我会得到未指定的尺寸异常
Has anyone successfully put a slidingdrawer in a fragment?
I get unspecified dimension exceptions unless I specify the width and height of the drawer in dip (which isn't ideal for supporting large/small screen devices
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SlidingDrawer 的想法是它粘在屏幕的边缘。由于您可以选择将片段放置在活动布局中的任何位置,因此在片段布局中使用它可能不是最好的主意。
尽管您可以使用基本的布局层次结构技巧来设置滑动抽屉在被视为
isOpen()
之前滑动的限制。一旦我在这台机器上设置了 Eclipse,就必须确认这一点
the idea of a SlidingDrawer is that it sticks to the edge of your screen. since you can choose to place fragments anywhere you can in an activity's layout, it's probably not the best idea to use it inside a fragment's layout.
although you can set the limit to where your sliding drawer slides before it's considered
isOpen()
using basic layout heirarchy tricks.will have to confirm this once i set up eclipse on this machine