PullDownListView高仿微信下拉眼睛出现动画
2015-09-11 10:23
656 查看
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
}
});
项目下载:
引入布局:<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
}
});
项目下载:
相关文章推荐
- Android仿微信图片上传,可以选择多张图片,缩放预览,拍照上传等
- 微博电商VS微信电商 同质化下的差异竞争
- 微信 token 验证
- 微信三级分销你知道多少?wemall
- 微信JSSDK开发JAVA版实现
- 微信开发如何做本地调试?
- 微信开发如何做本地调试?
- 微信开发如何做本地调试?
- 微信开发如何做本地调试?
- Android PopupWindow 仿微信点赞和评论弹出框
- 微信的发展演变
- 衡阳哪个微信公众号最好?
- java 解决微信不能重定向resposne.sendRedirect的问题
- 微信定位
- ios 微信发送位置
- Bugly公众号功能扩展,再不关注就亏了
- 微信公众平台 模版消息
- 微信的发展演变
- ios微信web登录,QQweb登录中遇到的坑
- 微信开发的基本知识