我有这样的看法:Android的 - 试图让滚动视图,并导致崩溃
<?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>
此崩溃。任何想法为什么?我不知道如何使整个页面滚动。
谢谢!
做了滚动 – 2012-04-21 14:50:51