登录
首页 » Java » DrawListView

DrawListView

于 2012-11-06 发布 文件大小:635KB
0 242
下载积分: 1 下载次数: 11

代码说明:

  关于Android操作ListView时,Item过长导致的Position无法正确计算. 此例子解决这个需求.(About Android operating ListView, Item too long caused Position can not be calculated correctly. Examples to address this demand.)

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

发表评论

0 个回复

  • android-heart-rate-monitor
    Android Java 通过蓝牙接受数据,画出无线心电图 (ECG analysis software, including a QRS detector algorithm. The algorithm here, designed to detect the QRS complexes in the electrocardiogram using by Pan J and Tompkins WJ. A Real-Time QRS Detection Algorithm.)
    2014-04-21 22:37:04下载
    积分: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
  • c-jni-java
    C中通过JNI调用java对象接口,也有java调用c接口,是在Android开发环境中运行的(C through JNI call java object interface)
    2013-08-23 10:00:37下载
    积分:1
  • ZipUtil zip压缩与解压缩工具
    zip压缩  解压缩 工具,只能解压zip文件 并返回zip文件中的子文件,已经解决中文乱码问题 ,方法都是静态方法 可以直接使用,是一个非常不错的zip文件解析工具
    2022-08-17 22:51:10下载
    积分:1
  • Android_API
    android开发的基本API,查找方便了(android development of the basic API, easy to find)
    2011-06-28 16:05:56下载
    积分:1
  • Jsp_buy_computer
    网上购物车,基本实现网上购物车 使用的框架是struts1(Online shopping cart, online shopping cart to use basically the framework is struts1)
    2010-03-11 11:51:13下载
    积分:1
  • TcpServer收集数据
    从虚拟机中获取数据,重点是将从redhat中的sqlite3数据库中取的数据,然后发送到windows中的方法,但这要要java工具。
    2022-11-03 06:05:03下载
    积分:1
  • netbeans的代码信息
    主要运行的界面是通讯录故那里系统,当输入信息的时候,在运行界面显示输入的信息,用于用户的增删改查,有效的进行数据的输入
    2022-02-05 22:16:50下载
    积分:1
  • android-under_1[1].5SDK_Compile_CH04
    Android sdk 开发范例大全 第五章源码
    2012-05-01 12:44:08下载
    积分:1
  • 基于springboot和vue 前后端分离后台管理系统
    【实例简介】 * 前端采用Vue、Element UI。 * 后端采用Spring Boot、Spring Security、Redis & Jwt。 * 权限认证使用Jwt,支持多终端认证系统。 * 支持加载动态权限菜单,多方式轻松权限控制。 * 高效率开发,使用代码生成器可以一键生成前后端代码。
    2021-08-16 00:30:59下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载