开发者

prevent wrapping of content

I have a layout with 2 listviews one on top of the other their layout height is set to "wrap_content" and layout width ist "match_parent" both have a layout weight of 50 (i.e. 50 percent) if both listviews are empty, everything is fine, but when the upper listview contains many elements and the lower listview remains empty, the layout make开发者_开发问答s one list view grow and the other shrink. i want both list views to never change their relative size in the layout and instead have scrolling!


Don't set the heights to wrap_content, set them to 0dip instead.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜