Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

scrollView and footer issue in android

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?

like image 714
Remmyabhavan Avatar asked Aug 30 '10 07:08

Remmyabhavan


1 Answers

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
like image 179
plugmind Avatar answered Sep 22 '22 03:09

plugmind