<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ptr="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:orientation="vertical" android:layout_height="match_parent"> <com.handmark.pulltorefresh.library.PullToRefreshScrollView android:id="@+id/refresh_list_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:id="@+id/layout" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <android.support.v4.view.ViewPager android:id="@+id/viewpager" android:layout_width="match_parent" android:layout_height="210dp"></android.support.v4.view.ViewPager> <duanxinmeng.bwie.com.sanzhoukao.MyListview android:id="@+id/listview" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/viewpager"></duanxinmeng.bwie.com.sanzhoukao.MyListview> </LinearLayout> </com.handmark.pulltorefresh.library.PullToRefreshScrollView> </LinearLayout>
轮播图和ListView一起刷新用pull刷新时的布局显示
最新推荐文章于 2026-06-23 07:40:30 发布
本文介绍了一个集成PullToRefreshScrollView与ViewPager的布局方案,该方案实现了下拉刷新功能并结合了视图分页展示,提升了用户体验。文章详细展示了具体的XML布局代码,包括各组件的属性设置。

423

被折叠的 条评论
为什么被折叠?



