滚动视图和页脚问题的android [英] scrollView and footer issue in android

查看:141
本文介绍了滚动视图和页脚问题的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Andr​​oid应用我使用的标题和页​​脚。在这两者之间我有一个滚动视图中的表格。
问题是,我不能够看到页脚即使我将它添加相同的标题,使用包括标记。
如果我设置了滚动型的高度和宽度的一些指定的长度,它工作正常,但是,当它改变时它没有方向。

In my Android application I am using a header and a footer. In between I have a table inside a scrollview.
The problem is that I am not able to see the footer even if I am adding it the same as header, using include tag.
If I set the height and width of the scrollview to some specified length it works fine, but again, when it changes the orientation it doesn't.

难道任何一个,让我知道我可以在屏幕的底部我的页脚可见,但不改变滚动视图的高度?

Could any one let me know how I can make my footer visible at the bottom of the screen without changing the scrollview height?

推荐答案

我想根本的观点是的LinearLayout 。如果是的话,一定要设置以下的中间滚动型的属性:

I suppose root view is LinearLayout. If so then make sure to set following attributes of the middle ScrollView:

<ScrollView ... 
    android:layout_height="wrap_content" 
    android:layout_weight="1">
    ...
</ScrollView

这篇关于滚动视图和页脚问题的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆