简体   繁体   中英

Layout expand on button press

What I want to do is have two 'frames'. Left and Right. At application start, the left frame takes up the majority of the space while the right frame is just barely visible.

I want to be able to 'animate' and expand the right frame on button press or on swipe.

Currently, I have the layout set using weightSum and layout_weight , so my issue is mainly the expanding / animating.

This is similar to how you can pull down the notifications bar in android or in the Facebook app, except from left to right.

If you want to do something like the Facebook app, I suggest you look at the Sliding Drawer class. It allows for both vertical and horizontal configurations.

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