https://github.com/chrisbanes/Android-PullToRefresh/blob/master/sample/res/layout/activity_ptr_expandable_list.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<!-- The PullToRefreshExpandableListView replaces a standard ExpandableListView widget. -->
<com.handmark.pulltorefresh.library.PullToRefreshExpandableListView
xmlns:ptr="http://schemas.android.com/apk/res-auto"
android:id="@+id/pull_refresh_expandable_list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
ptr:ptrHeaderBackground="@android:color/darker_gray"
ptr:ptrHeaderTextColor="@android:color/white"
ptr:ptrMode="pullUpFromBottom" />
</LinearLayout>
本文介绍了一个使用PullToRefresh库实现下拉刷新功能的ExpandableListView布局示例。该示例通过自定义PullToRefreshExpandableListView组件并设置其样式属性,如背景颜色和文本颜色等,来展示如何在Android应用中集成下拉刷新功能。
219

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



