2011-10-09 55 views
0

我有一个显示消息的列表视图,我想添加footerview显示加载按钮,如果列表视图设置为android:layout_height="fill_parent"它工作正常,但我需要给它一个绝对值来设置列表视图的高度如android:layout_height="400dip"以避免getview方法重复调用,然后footerview宽度不能匹配父级。Android ListView FooterView宽度不是母亲

回答

1

设置列表视图layout_height="fill_parent"layout_weight="1",那么你放在它下面的任何东西都会有空间。

+0

所以...做了这项工作? – Spencer