码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2015-07-12 23:23:05      阅读:252      评论:0      收藏:0      [点我收藏+]

标签:android   下拉加载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" 
     <span style="color:#ff0000;">ptr:ptrAnimationStyle="louisAnimationStyle"</span>
    />


lib底层配置

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

技术分享


技术分享


技术分享


技术分享

技术分享


其他就照着这个库的正常用法使用就行


修改后的lib库下载:



版权声明:本文为【LouisGeek】原创文章,转载请注明出处!

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

标签:android   下拉加载gif动图   

原文地址:http://blog.csdn.net/richiezhu/article/details/46854247

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!