Android 当我在选项卡内容中包含包含listview的活动时,listview项不';不象所有人一样

Android 当我在选项卡内容中包含包含listview的活动时,listview项不';不象所有人一样,android,android-layout,listview,Android,Android Layout,Listview,当我想显示包含listview的活动时,我遇到了一个问题 仅在选项卡内容中,Listview项目不显示为项目列表,但它显示为一个项目,屏幕上的小空间和项目滚动非常困难 这是我的标签文件的XML: <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_paren

当我想显示包含
listview
的活动时,我遇到了一个问题

仅在选项卡内容中,Listview项目不显示为项目列表,但它显示为一个项目,屏幕上的小空间和项目滚动非常困难

这是我的标签文件的XML:

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical" >

        <TabHost
            android:id="@+id/edit_item_tab_host"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent" >

            <TabWidget
                android:id="@android:id/tabs"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="top" />

            <FrameLayout
                android:id="@android:id/tabcontent"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:paddingTop="65px" >

                <LinearLayout
                    android:id="@+id/edit_item_text_tab"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:orientation="vertical"
                    android:padding="5px" >

                    <include layout="@layout/hot_shows" />
                </LinearLayout>

                <LinearLayout
                    android:id="@+id/edit_item_date_tab"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:orientation="vertical"
                    android:padding="5px" >
                </LinearLayout>

                <LinearLayout
                    android:id="@+id/edit_item_geocontext_tab"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:orientation="vertical"
                    android:padding="5px" >

                    <include
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        layout="@layout/guid"
                      />
                </LinearLayout>


            </FrameLayout>
        </TabHost>
    </LinearLayout>

</ScrollView>


layout=“@layout/guid”
此布局包含列表视图。

如果您想将列表视图附加到scrollview布局-这是错误的,不要这样做现在工作很好,谢谢您的帮助@yolappit's Work now good,谢谢您的帮助@Yahor10