登录
首页 » Java » android listview下拉刷新示例源码下载

android listview下拉刷新示例源码下载

于 2014-04-13 发布
0 109
下载积分: 1 下载次数: 0

代码说明:

android listview下拉刷新示例源码下载

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 高仿人人网android客户端主界面 示例源码下载
    SlidingMenu https://github.com/jfeinstein10/SlidingMenu     ActionBarSherlock https://github.com/JakeWharton/ActionBarSherlock
    2013-10-23下载
    积分:1
  • android 图片高斯模糊 实例源码下载
    android 图片高斯模糊 实例源码下载
    2014-12-05下载
    积分:1
  • android 截图示例源码下载
    android 截图示例源码下载
    2013-10-23下载
    积分:1
  • android 解锁例子源码
    package com.codeshogun.android.swipesample;import android.app.Activity;import android.os.Bundle;import android.view.GestureDetector;import android.view.MotionEvent;import android.view.View;import android.view.GestureDetector.SimpleOnGestureListener;import android.view.animation.Animation;import android.view.animation.AnimationUtils;import android.widget.ViewFlipper;public class Main extends Activity { private static final int SWIPE_MIN_DISTANCE = 120; private static final int SWIPE_MAX_OFF_PATH = 250; private static final int SWIPE_THRESHOLD_VELOCITY = 200; private GestureDetector gestureDetector; View.OnTouchListener gestureListener; private Animation slideLeftIn; private Animation slideLeftOut; private Animation slideRightIn; private Animation slideRightOut; private ViewFlipper viewFlipper; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); viewFlipper = (ViewFlipper)findViewById(R.id.flipper); slideLeftIn = AnimationUtils.loadAnimation(this, R.anim.slide_left_in); slideLeftOut = AnimationUtils.loadAnimation(this, R.anim.slide_left_out); slideRightIn = AnimationUtils.loadAnimation(this, R.anim.slide_right_in); slideRightOut = AnimationUtils.loadAnimation(this, R.anim.slide_right_out); gestureDetector = new GestureDetector(new MyGestureDetector()); gestureListener = new View.OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { if (gestureDetector.onTouchEvent(event)) { return true; } return false; } }; } class MyGestureDetector extends SimpleOnGestureListener { @Override public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { try { if (Math.abs(e1.getY() - e2.getY()) > SWIPE_MAX_OFF_PATH) return false; // right to left swipe if(e1.getX() - e2.getX() > SWIPE_MIN_DISTANCE && Math.abs(velocityX) > SWIPE_THRESHOLD_VELOCITY) { viewFlipper.setInAnimation(slideLeftIn); viewFlipper.setOutAnimation(slideLeftOut); viewFlipper.showNext(); } else if (e2.getX() - e1.getX() > SWIPE_MIN_DISTANCE && Math.abs(velocityX) > SWIPE_THRESHOLD_VELOCITY) { viewFlipper.setInAnimation(slideRightIn); viewFlipper.setOutAnimation(slideRightOut); viewFlipper.showPrevious(); } } catch (Exception e) { // nothing } return false; } } @Override public boolean onTouchEvent(MotionEvent event) { if (gestureDetector.onTouchEvent(event)) return true; else return false; }}
    2014-04-16下载
    积分:1
  • android以get和post方式提交数据给WEB 完整实例源码下载
    android以get和post方式提交数据给WEB 完整实例源码下载
    2014-06-20下载
    积分:1
  • 将PC电脑端的文件通过usb传到android手机中 示例源码下载(含android和pc端完整源码)
    将PC电脑端的文件通过usb传到android手机中 示例源码下载(含android和pc端完整源码)
    2014-06-23下载
    积分:1
  • android 拍照或从相册中选择并保存到sd卡
    拍照或从相册中选择并保存到sd卡
    2015-05-07下载
    积分:1
  • 声源定位系统源码(基于stm32)
    基于stm32声源定位系统,亲自测试过,可以用
    2019-09-10下载
    积分:1
  • Android BLE示例程序
    Android BLE示例程序
    2014-09-25下载
    积分:1
  • android 模仿微博登陆框实例源码
    当文字输入时改变图片  仿微博
    2014-08-22下载
    积分:1
  • 696518资源总数
  • 104226会员总数
  • 29今日下载