【发布时间】:2014-03-16 12:06:42
【问题描述】:
我有线性布局,但如果滚动数据大于屏幕大小,则底部不显示。
在线性布局中使用 Scrollview 时,当滚动数据超过设备高度时,会拉伸底部。
如果我的数据少于垂直屏幕大小,那么底部的所有按钮都会正确显示。
public class TestGUI extends LinearLayout {
sv = new ScrollView(context);
hsv = new HorizontalScrollView(context);
this.addView(topLinearHorizonal);
hsv.addView(tableLayout);
sv.addView(hsv);
this.addView(sv);
this.addView(fullbottomLinearHorizonal);
}
已编辑:
LinearLayout fullbottomLinearHorizonal= new LinearLayout(context);
fullbottomLinearHorizonal.setOrientation(VERTICAL);
fullbottomLinearHorizonal.addView(clearLinearHorizonal);
fullbottomLinearHorizonal.addView(bottomLinearHorizonal);
【问题讨论】:
-
你的 ScrollView 是父布局吗?
-
不,我在父级中有 linearlayour。在线性布局滚动视图集内。 this.addView(fullbottomlinearhorizonal);在我的情况下是伸展的。最重要的是日期确定。如果我有更多的垂直数据,然后筛选它。
-
fullbottomLinearHorizonal 是线性布局吗?
-
是的。我有请检查我编辑的问题。
标签: android scrollview