登录
首页 » Java » android 联系人分类排序

android 联系人分类排序

于 2014-03-14 发布
0 438
下载积分: 1 下载次数: 0

代码说明:

android 联系人分类排序

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

发表评论

0 个回复

  • android 一键锁屏实例源码下载
    android 一键锁屏实例源码下载
    2014-09-02下载
    积分:1
  • android 异步下载示例源码
    其中还包含了各种布局示例 以及
    2014-04-13下载
    积分:1
  • android联系人带字母检索源码
    android联系人带字母检索源码/** * 联系人列表适配器。 * * @author guolin */public class ContactAdapter extends ArrayAdapter { /** * 需要渲染的item布局文件 */ private int resource; /** * 字母表分组工具 */ private SectionIndexer mIndexer; public ContactAdapter(Context context, int textViewResourceId, List objects) { super(context, textViewResourceId, objects); resource = textViewResourceId; } @Override public View getView(int position, View convertView, ViewGroup parent) { Contact contact = getItem(position); LinearLayout layout = null; if (convertView == null) { layout = (LinearLayout) LayoutInflater.from(getContext()).inflate(resource, null); } else { layout = (LinearLayout) convertView; } TextView name = (TextView) layout.findViewById(R.id.name); LinearLayout sortKeyLayout = (LinearLayout) layout.findViewById(R.id.sort_key_layout); TextView sortKey = (TextView) layout.findViewById(R.id.sort_key); name.setText(contact.getName()); int section = mIndexer.getSectionForPosition(position); if (position == mIndexer.getPositionForSection(section)) { sortKey.setText(contact.getSortKey()); sortKeyLayout.setVisibility(View.VISIBLE); } else { sortKeyLayout.setVisibility(View.GONE); } return layout; } /** * 给当前适配器传入一个分组工具。 * * @param indexer */ public void setIndexer(SectionIndexer indexer) { mIndexer = indexer; }}
    2014-04-13下载
    积分:1
  • android 声波支付例子
    android 声波支付例子
    2014-09-25下载
    积分:1
  • RSA核心加密
    RSA核心加密
    2014-02-18下载
    积分:1
  • android 音频通讯库实例源码(含安卓、ios demo)
     * 此demo程序属于试用性质程序,仅具备部分功能,其限制如下: * 1. 仅支持部分字符识别。 * 2. 识别若干次后,程序会自动停止识别。若想继续使用,请停止该程序,然后重新启动程序。 * 3. 不支持连续字符传递。 * 4. 不支持自动纠错功能。 * 5. 禁止用于商业用途。 * 网上找的开发库,试了下,可用,但有限制,可用来开发DEMO
    2015-01-26下载
    积分:1
  • android 拍照实例源码(调用照相机)
    android 拍照实例源码(调用照相机)
    2014-12-23下载
    积分:1
  • android图片,可调节饱和度、色相和亮度
    实现打开图片功能
    2015-07-02下载
    积分:1
  • android 文件管理器 源码下载
    android 文件管理器 源码下载
    2014-10-23下载
    积分:1
  • android转盘抽奖实例
    android转盘抽奖实例
    2020-10-22 15:17:23下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载