我有一个ListView的布局。列表滚动正常,但有时页面上的其他内容需要更大,列表或其他内容占用了太多的屏幕,所以我需要全部滚动。Android - 如何使用ListView在布局上启用整页滚动?
可以这样做吗?
这里的布局我到目前为止:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<include android:id="@+id/header"
layout="@layout/header"
android:layout_height="wrap_content"
android:layout_width="fill_parent"/>
<TextView
android:id="@+id/view_name"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Business:"
/>
<TextView
android:id="@+id/business_privacy"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Loading..."
/>
<TextView
android:id="@+id/think"
android:layout_width="fill_parent"
android:layout_marginTop ="5dp"
android:textColor="@color/light_best_blue"
android:paddingLeft="10px"
android:layout_height="wrap_content"
android:text="Fill out each section below"
/>
<ListView
android:id="@android:id/list"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@+id/label"
android:textSize="20px"
>
</ListView>
</LinearLayout>
会是什么,以方便用户能够看到文本和列表,即使文字占用了道路的整个屏幕?我可以让文字滚动吗?这在横向视图上尤其糟糕,所以我认为必须有一些用户界面才能使其发挥出色。
感谢您的建议!