PullDownListView高仿微信下拉眼睛出现动画,动画自定义PullDownListView,
pullDownListView.setOnPullHeightChangeListener设置下拉高度监听,onTopHeightChange()
onBottomHeightChange(),onRefreshing()其中提供者三个方法时刻刷新页面特效

引入布局:
<com.pulldownlistview.PullDownListView
android:id="@+id/pullDownListView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#424242"
>

<RelativeLayout
android:id="@+id/layoutHeader"
android:layout_width="match_parent"
android:layout_height="80dp"
android:layout_alignParentTop="true" >

<com.yourCustomView..../>

</RelativeLayout>

<RelativeLayout
android:id="@+id/layoutFooter"
android:layout_width="match_parent"
android:layout_height="80dp"
android:layout_alignParentBottom="true" >

<com.yourCustomView..../>

</RelativeLayout>
</com.pulldownlistview.PullDownListView>


主要代码部分:

pullDownListView.setOnPullHeightChangeListener(new OnPullHeightChangeListener(){

@Override
public void onTopHeightChange(int headerHeight, int pullHeight) {
// TODO Auto-generated method stub

}

@Override
public void onBottomHeightChange(int footerHeight, int pullHeight) {
// TODO Auto-generated method stub

}

@Override
public void onRefreshing(boolean isTop) {
// TODO Auto-generated method stub

}

});


项目下载:http://itlanbao.com/preview.aspx#1,0


更多相关文章

  1. Android自定义动画框架让View实现Path动画
  2. Android动态获取json解析后显示到RecyclerView
  3. android Animation初探一
  4. android中setVisibility的用法
  5. Android轮播图封装,下拉刷新相结合
  6. Android中StackView的使用
  7. This tag and its children can be replaced by ~~~
  8. Android(安卓)WebView工作中遇到的问题记录
  9. Android(安卓)APP 启动优化(冷启动)

随机推荐

  1. 28.mysql数据库之查询
  2. Python编程之解释器
  3. python - pandas或者sklearn中如何将字符
  4. Python随心记--进程、线程
  5. Python爬虫之模拟登录总结
  6. 记一次python爬虫实战,豆瓣电影Top250爬虫
  7. 如何创建一个查询来过滤一列等于另一列同
  8. Python - 去除字符串首尾填充
  9. python 实践 心理测验(by Kim)
  10. Anaconda 添加国内镜像下载OpenCV