PullToRefresh ScrollView的Listview和轮播图布局

来源:互联网 发布:mysql索引失效 in or 编辑:程序博客网 时间:2024/03/28 16:44
   <!--中多了几个属性 分别以ptr开头,这是指定pullToRefreshListView在刷新的时候出现的特效,
    比如ptrDrawable第一个是指定刷新时显示的图片,ptrAnimationStyle第二个是指定刷新的图片以何种方式显示出来,
    ptrHeaderBackground第三个是指定刷新时头部的背景,ptrHeaderTextColor第四个是指定刷新时头部字体的颜色。-->


    <com.handmark.pulltorefresh.library.PullToRefreshScrollView
        xmlns:ptr="http://schemas.android.com/apk/res-auto"
        android:id="@+id/refresh_scroll_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        ptr:ptrAnimationStyle="flip"
        ptr:ptrDrawable="@drawable/default_ptr_flip"
        ptr:ptrHeaderBackground="#383838"
        ptr:ptrHeaderTextColor="#FFFFFF">


        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical">


            <android.support.v4.view.ViewPager
                android:id="@+id/image_view_pager"
                android:layout_width="match_parent"
                android:layout_height="200dp">


            </android.support.v4.view.ViewPager>


            <news1510a.bawei.com.a16_pulltorefresh_demo.view.MyListView
                android:id="@+id/scroll_list_view"
                android:layout_width="match_parent"
                android:layout_height="match_parent">


            </news1510a.bawei.com.a16_pulltorefresh_demo.view.MyListView>
        </LinearLayout>




    </com.handmark.pulltorefresh.library.PullToRefreshScrollView>
阅读全文
0 0