手机版

手机软件功能开发(9)

时间:2025-04-23   来源:未知    
字号:

Android手机系统的手机功能开发例子

insertContactsDialog();

}

//关闭Cursor

if (cursor != null) {

cursor.close();

}

ContactsAdapter contactsAdapter

ContactsAdapter(this,contacts_lable,contactslist);

listView.setAdapter(contactsAdapter);

listView.setOnItemClickListener(this);

}

/**

* 适配器 * * @author wangyueyishi */ public class ContactsAdapter extends BaseAdapter { private LayoutInflater mInflater; private List<Map<String, Object>> mList; private String[] mIndex; = new public ContactsAdapter(Context context, String[] index,List<Map<String, Object>> list) { mInflater = LayoutInflater.from(context); mList = list; mIndex = index; } public int getCount() { return Math.min(mList.size(), mList.size()); } public Object getItem(int position) { return mList.get(position % mList.size()); } public long getItemId(int position) { return position; }

手机软件功能开发(9).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
×
二维码
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)