开发者

Drag to dynamically resize a pair of adjacent layouts on Android

开发者 https://www.devze.com 2023-02-13 01:30 出处:网络
I have a pair of adjacent views in an Android application. I\'d like to give the user the ability to drag a widget to change the relative size of the two views within a larger container.If SlidingDraw

I have a pair of adjacent views in an Android application. I'd like to give the user the ability to drag a widget to change the relative size of the two views within a larger container. If SlidingDrawer let the user pin the drawer wherever they wanted, tha开发者_C百科t'd likely get me what I want.

My Google 'fu is failing me. I can't find a single example of this anywhere.

Thanks!


I ended up putting together a bit of code to create a custom LinearLayout subclass to do what I wanted.

The code is at https://github.com/k9mail/splitview

0

精彩评论

暂无评论...
验证码 换一张
取 消