我有这样的看法:
<?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"
>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TextView
android:id="@+id/page_exlain"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Lots of text here"
android:layout_marginTop ="20dp"
/>
<TextView
android:id="@+id/exec_summary_heading"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="@color/light_best_blue"
android:layout_marginTop ="10dp"
android:text="1) EXECUTIVE SUMMARY"
/>
<TextView
android:id="@+id/exec_summary_text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Lots of text goes here."
android:layout_marginTop ="10dp"
/>
<TextView
android:id="@+id/product_heading"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="@color/light_best_blue"
android:layout_marginTop ="10dp"
android:text="2) YOUR PRODUCT OR SERVICE"
/>
<TextView
android:id="@+id/product_text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Lots of text goes here......"
android:layout_marginTop ="10dp"
/>
</ScrollView>
</LinearLayout>
这崩溃了。知道为什么吗?我不确定如何使整个页面可滚动。
谢谢!