登录
首页 » Android » 自定义列表视图排序

自定义列表视图排序

于 2023-05-15 发布 文件大小:1.70 MB
0 84
下载积分: 2 下载次数: 1

代码说明:

我以前的文章中自定义的ListView使用图像和文本给你定制,其中包含缩略图和几个文本字段列表视图的一个很好的概述。所有列表数据将通过网络电话下载。该教程的主要挑战是下载的图像异步和追赶他们。由于缺乏良好的工具,我用了一个第三方库(这是一个很好的图书馆虽然)下载列表视图数据和缓存的图像。今天,我要解释的一样,但这次用不同的方法通过使用另一个库叫做凌空抽射。通过大力抽射,你可以看到在列表视图性能不俗的改善没有多大的努力。

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

发表评论

0 个回复

  • android-introduction-book
    Android最基本组成介绍,浅显易懂的教材。(This is an android introduction book,which is easy to understand and learn.)
    2015-12-12 13:52:43下载
    积分:1
  • Android 通过LooperThread运行线程持续取得系统时间
    Android持续获取系统时间,以一个圆形为例,演示通过LooperThread运行线程持续取得系统时间。   我们需要使用Handler类与Message类来处理运行线程,使用Java的Calendar与Thread类来取得系统时间,在编写代码时别忘了引入android.os.Handler;android.os.Message;java.util.Calendar;等相关类;   在编写时,我们声明一常数作为判别信息用,声明两个widget对象变量,声明与时间相关的变量,声明关键Handler与Thread变量,通过findViewById取得两个widget对象,然后通过Handler来接收运行线程所传递的信息并更新TextView,通过运行线程来持续取得系统时间,改写一个Thread Class用来持续取得系统时间。在取得系统时间方面,我们通过Calendar对象来取得小时与分钟。   编写时的一个关键点:取得时间后发出信息给Handler,当系统发出中断信息时停止循环。。
    2022-08-09 06:15:29下载
    积分:1
  • 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
  • AndroidPushNotificationsDemo
    android 推送的项目源码,基于ibm的mqtt的客户端,打包即可运行(Push android project source code, based on the ibm mqtt client, packaged to run)
    2013-05-25 17:15:51下载
    积分:1
  • android listview下拉刷新示例源码下载
    android listview下拉刷新示例源码下载
    2014-04-13下载
    积分:1
  • 接种疫苗
    出生婴孩和所有数据同步到本地日历接种相应警报将生成。
    2022-08-15 06:35:08下载
    积分:1
  • baofengyingyin
    说明:  A UI project source code that imitates storm video and audio. The imitated interface includes menu pages, home pages, classification pages, etc. The local analog data used for all data in the project. The imitated degree will be problematic in layout and display on high-resolution devices. The resolution of 480 x 800 should be just right.
    2020-06-15 22:40:02下载
    积分:1
  • chapter3
    安卓教程的第一章学习源代码。简单的安卓小程序,适用于初学者。(Andrews tutorial to learn the source code. Simple Andrews applet, suitable for beginners.)
    2012-10-09 14:35:01下载
    积分:1
  • 暗屏亮屏的demo
    这是一个暗屏亮屏的demo,可以实现一段时间暗屏后过一段时间亮屏的功能。通过即时唤醒的方式。
    2022-03-20 19:44:03下载
    积分:1
  • stsndardrange
    用于测试Modbus通讯,工业软件的必备()
    2018-01-13 16:22:10下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载