开发者

scrollView issue in android

开发者 https://www.devze.com 2023-01-15 01:34 出处:网络
In my android appl;ication I am using a table inside a开发者_运维百科 scrollview and below that there is a footer.

In my android appl;ication I am using a table inside a开发者_运维百科 scrollview and below that there is a footer. Now the issue is the last row of the table is covered by the footer and is not visible. Is there any solution for this. My layout xml is

    <ScrollView
        android:id="@+id/Scroll"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:layout_weight="1"
        xmlns:android="http://schemas.android.com/apk/res/android">
     <TableLayout
    android:id="@+id/SubTable"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:orientation="vertical"

            xmlns:android="http://schemas.android.com/apk/res/android">
        </TableLayout>
        </ScrollView>

Please let me know your valuable suggestions. Thanks in advance :)


I would give the footer a specific height and use this height as a negativ margin at the bottom for your ScrollView. Something like that: http://www.droidnova.com/layout-technique-static-elements-below-scrollview,123.html

0

精彩评论

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