Android 尝试创建youtube视频列表时出错

Android 尝试创建youtube视频列表时出错,android,listview,youtube,android-arrayadapter,Android,Listview,Youtube,Android Arrayadapter,我想显示youtube视频列表 项目XML <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" > <TextView android:id="@+id/video_title" android:layout_width="match_parent" android:layout_

我想显示youtube视频列表

项目XML

<RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content" >

    <TextView
        android:id="@+id/video_title"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/model_black"
        android:ellipsize="end"
        android:padding="@dimen/medium_margin"
        android:singleLine="false"
        android:text="Title"
        android:textColor="@color/white"
        android:textSize="@dimen/large_text"
        android:textStyle="bold" />

    <fragment
        android:id="@+id/youtube_thumbnail"
        android:name="com.google.android.youtube.player.YouTubeThumbnailView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/video_title"
        android:layout_marginLeft="@dimen/small_margin"
        android:layout_marginRight="@dimen/small_margin" />
</RelativeLayout>


有人能帮忙吗?

我想XML文件有问题

你必须补充一点

<com.google.android.youtube.player.YouTubeThumbnailView
.....
.....
/>

代替

<fragment

当我照你说的做时,我在下面的帖子中得到了一个例外:
<com.google.android.youtube.player.YouTubeThumbnailView
.....
.....
/>
<fragment