Расположение XML, не сотрудничающее

Я испытываю затруднения при попытке использовать список в моем действии. Мой XML для res/layout/main.xml следующие:

<?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"
    >
<TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="@string/hello"
    />
<ListView android:id="@+id/ListView01" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TwoLineListItem android:id="@+id/TwoLineListItem01" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextView android:id="@android:id/text1"
        android:layout_marginTop="1dip"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textSize="15sp"
        android:textStyle="bold"
        android:text="@string/text1" />
<TextView android:id="@android:id/text2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@android:id/text1"
        android:layout_alignLeft="@android:id/text1"
        android:paddingBottom="4dip"
        android:includeFontPadding="false"
        android:textSize="15sp"
        android:textStyle="normal"
        android:text="@string/text2" />
</TwoLineListItem>
</ListView>
</LinearLayout>

После того как я пытаюсь выполнить его, однако, мое приложение просто "неожиданно выходит". Это получено, чтобы быть чем-то не так с XML, так как действие является просто значением по умолчанию setContentView(R.layout.main); Скажите мне, что я делаю неправильно.

1
задан Melody Horn 28 June 2010 в 01:59
поделиться