登录
首页 » Android » 上拉加载 和下拉刷新

上拉加载 和下拉刷新

于 2022-08-09 发布 文件大小:6.24 MB
0 135
下载积分: 2 下载次数: 1

代码说明:

一个实现了下拉刷新,滚动到底部加载更多以及添加header功能的的RecyclerView。使用方式和RecyclerView完全一致,不需要额外的layout,不需要写特殊的adater。 加载效果内置了AVLoadingIndicatorView上的所有效果,可以根据需要指定。

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

发表评论

0 个回复

  • android 短信拦截 实例完整源码下载
    可实现拦截短信,自动转发的功能。 部分代码:import android.app.AlarmManager;import android.app.PendingIntent;import android.app.Service;import android.content.Context;import android.content.Intent;import android.content.IntentFilter;import android.os.IBinder;import android.os.PowerManager;import android.os.PowerManager.WakeLock;public class MyService extends Service{ SMSReceiver rs=null; static MyService service; private static PendingIntent pi = null; public static AlarmManager am = null; @Override public IBinder onBind(Intent intent) { // TODO Auto-generated method stub return null; } @Override public void onCreate() { // TODO Auto-generated method stub super.onCreate(); service=this; pm = (PowerManager) getSystemService(Context.POWER_SERVICE); registerAlarm(); acquireWakeLock(this); registerRecever(); } @Override public void onDestroy() { // TODO Auto-generated method stub super.onDestroy(); releaseWakeLock(); unregisterAlarm(); } private void registerRecever(){ rs=new SMSReceiver(); IntentFilter filter=new IntentFilter(); filter.addAction("android.provider.Telephony.SMS_RECEIVED"); filter.setPriority(1000); registerReceiver(rs, filter); } @Override public int onStartCommand(Intent intent, int flags, int startId) { // TODO Auto-generated method stub if(rs==null)registerRecever(); return START_STICKY; } public static WakeLock wakeLock = null; private static PowerManager pm = null; public static synchronized void acquireWakeLock(Context c) { if (null == wakeLock) { wakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "smslock"); wakeLock.acquire(); } } public static synchronized void releaseWakeLock() { if (wakeLock == null) return; if (wakeLock.isHeld()) { wakeLock.release(); wakeLock = null; } } /** * 启动重复型定时器 */ public static void registerAlarm() { if(Config.getAlarm())return; Intent intent = new Intent(service, AlarmReceiver.class); pi = PendingIntent.getBroadcast(service, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT); // 设置一个PendingIntent对象,发送广播 am = (AlarmManager) service.getSystemService(Context.ALARM_SERVICE); // 获取AlarmManager对象, Config.setAlarm(true); am.setRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), 30*60*1000, pi); } /** * 取消定时器 */ public static void unregisterAlarm() { am.cancel(pi); am = null; Config.setAlarm(false); }}
    2014-05-21下载
    积分:1
  • BaiDuditu
    高仿百度地图源码,Android,源码精简,亲测可用,适合初学者研究(High imitation Baidu map source, Android, streamlined source, pro-test available for beginners research)
    2021-01-10 12:38:50下载
    积分:1
  • 图像识别
    public static Bitmap doPretreatment(Bitmap img) { setImgInfo(img); Bitmap grayImg = getGrayImg(); int[] p = new int[2]; int maxGrayValue = 0, minGrayValue = 255; // 计算最大及最小灰度值 getMinMaxGrayValue(p); minGrayValue = p[0]; maxGrayValue = p[1]; // 计算迭代法阈值 int T1 = getIterationHresholdValue(minGrayValue, maxGrayValue); // // 计算大津法阈值 // int T2 = getOtsuHresholdValue(minGrayValue, maxGrayValue); // // 计算最大熵法阈值 // int T3 = getMaxEntropytHresholdValue(minGrayValue, maxGrayValue); // int[] T = { T1, T2, T3 }; // // Bitmap result = selectBinarization(T); Bitmap result = binarization(T1); return result; }
    2022-01-25 19:56:39下载
    积分:1
  • 基于eclipse开发的安卓数据添加删除
    基于eclipse开发的安卓数据添加删除基于eclipse开发的安卓数据添加删除基于eclipse开发的安卓数据添加删除基于eclipse开发的安卓数据添加删除基于eclipse开发的安卓数据添加删除基于eclipse开发的安卓数据添加删除基于eclipse开发的安卓数据添加删除基于eclipse开发的安卓数据添加删除
    2022-02-04 21:02:21下载
    积分:1
  • android 多文件上传(有进度条)例子源码
    用于多文件上传到服务器,并且有进度条提示
    2015-05-29下载
    积分:1
  • 仿支付宝芝麻信用
    仿支付宝芝麻信用,android   androidstudio的源码,特效牛逼,欢迎学习,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    2022-03-06 14:24:29下载
    积分:1
  • 多activity界面蓝牙通信代码
    基于BluetoothCharService功能类,开发的与HC05模块可通信的多acitivity示例程序。 登录页面密码重复输入两次即可登入。
    2022-05-19 22:14:53下载
    积分:1
  • Android应用开发实例 TrainSystemHelper 完整源码
    Android应用开发实例 TrainSystemHelper
    2013-01-10下载
    积分:1
  • momo
    说明:  自己闲时网上找的改的陌陌的客户端,UI界面基本都有,可以作为学习的参考(When I am free, I can find some new clients on the internet. The UI interface is basically available, which can be used as a reference for learning.)
    2019-03-01 14:10:17下载
    积分:1
  • android 微信分享插件 源码下载
    调用phoneGap实现分享图片文字和视频等功能
    2014-12-31下载
    积分:1
  • 696516资源总数
  • 106481会员总数
  • 12今日下载