简体   繁体   中英

How do I make multiple buttons on drawer handles?

I want a sliding drawer, with two buttons on its handle, unrelated to the ability to slide the drawer. Like the below.

{aOOOb}

where {000} is the handle, and a and b are buttons

Thanks

Use a layout for the handle that defines the two buttons.

In the example in the Android Documentation for SlidingDrawer replace the ImageView for either a LinearLayout or a RelativeLayout, then put your buttons inside that layout, and assign that layout as the view for your SlidingDrawer handle as explained in the documentation.

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