简体   繁体   中英

Slidingdrawer in a Fragment

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM