开发者

Drag to dynamically resize a pair of adjacent layouts on Android

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜