<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<LinearLayout
android:id="@+id/wr_areas"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
</LinearLayout>
</ScrollView>
<include
android:id="@+id/include2"
layout="@layout/tail"
tools:ignore="ResourceCycle" />
这是主界面部分代码,当这个超出屏幕范围时,底部的控件会被覆盖
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="fill_parent">
<RadioGroup
android:id="@+id/rd_group3"
android:layout_width="match_parent"
android:layout_height="18dp"
android:layout_marginBottom="65dp"
android:layout_alignParentBottom="true"
android:orientation="horizontal">
<TextView
android:id="@+id/index4"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:gravity="center"
android:text="@string/now_page"></TextView>
<TextView
android:id="@+id/index5"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:gravity="center"
android:text="@string/total_page"></TextView>
<TextView
android:id="@+id/index6"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:gravity="center"
android:text="@string/total_record"></TextView>
</RadioGroup>
<RadioGroup
android:id="@+id/rd_group"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginBottom="15dp"
android:layout_alignParentBottom="true"
android:orientation="horizontal">
<ImageView
android:id="@+id/previous_page"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:paddingLeft="20.0dip"
android:paddingRight="20.0dip"
android:src="@drawable/logo"
android:contentDescription="TODO" />
<ImageView
android:id="@+id/next_page"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:paddingLeft="20.0dip"
android:paddingRight="20.0dip"
android:layout_weight="1.0"
android:src="@drawable/logo" />
<ImageView
android:id="@+id/back"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:paddingLeft="20.0dip"
android:paddingRight="20.0dip"
android:layout_weight="1.0"
android:src="@drawable/logo" />
</RadioGroup>
<RadioGroup
android:id="@+id/rd_group2"
android:layout_width="match_parent"
android:layout_height="18dp"
android:layout_alignParentBottom="true"
android:orientation="horizontal">
<TextView
android:id="@+id/index1"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:gravity="center"
android:text="@string/previous_page_text"></TextView>
<TextView
android:id="@+id/index2"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:gravity="center"
android:text="@string/next_page_text"></TextView>
<TextView
android:id="@+id/index3"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:gravity="center"
android:text="@string/back_text"></TextView>
</RadioGroup>
</RelativeLayout>
这是底部代码