首页 > 代码库 > android-pulltorefresh 下拉载入中使用gif动图

android-pulltorefresh 下拉载入中使用gif动图

效果预览:

技术分享

xml布局

<com.handmark.pulltorefresh.library.PullToRefreshListView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:ptr="http://schemas.android.com/apk/res-auto"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:divider="#00000000"
    android:cacheColorHint="#00000000"
    android:listSelector="#00000000"
    android:fastScrollEnabled="true"
     ptr:ptrHeaderTextColor="@color/gray" 
     ptr:ptrAnimationStyle="louisAnimationStyle"
    />


lib底层配置

里面配置了自己定义的动画样式

技术分享


技术分享


技术分享


技术分享

技术分享


其它就照着这个库的正经常使使用方法使用即可


【地址已更新,CSDN吃链接】改动后的lib库下载:http://download.csdn.net/detail/richiezhu/9026211


gif图片分离器:http://download.csdn.net/detail/richiezhu/9026175



android-pulltorefresh 下拉载入中使用gif动图