android中scrollview与listview共存

<ScrollView 
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:fadingEdge = "none"
        android:background="#FFF4F4F4"
        xmlns:android="http://schemas.android.com/apk/res/android"
        >
   <LinearLayout 
    android:gravity="center_horizontal" 
    android:orientation="vertical" 
    android:background="#fff4f4f4" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent"
    >
    <ListView 
        android:id="@+id/moreItemsListView" 
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent" 
        android:cacheColorHint="#FFF4F4F4" 
        android:dividerHeight="0.0dip" 
        android:fadingEdge="none"
        />
   </LinearLayout>
</ScrollView>

源码

posted @ 2013-09-29 15:16  xxdc  阅读(167)  评论(0编辑  收藏  举报