android开发仿原生联系人,android 仿IOS联系人列表

该博客介绍了如何实现一款仿iOS风格的Android联系人列表控件,包括字母行置顶(带阴影和不带阴影)功能,支持通过点击和滑动快速定位到指定字母。此外,还提供了搜索栏进行中英文搜索的支持,增强了用户体验。核心代码涉及到PinnedSectionListView和自定义适配器等组件。
摘要由CSDN通过智能技术生成

【实例简介】

这是一款仿ios联系人列表控件,支持字母行置顶(有阴影和没阴影置顶)。支持右边字母视图点击和滑动到置顶的字母行。搜索栏支持中英文搜索

【实例截图】

【核心代码】

PhoneDemo

└── PhoneDemo

├── AndroidManifest.xml

├── bin

│   ├── AndroidManifest.xml

│   ├── classes

│   │   └── com

│   │   └── example

│   │   └── phonedemo

│   │   ├── BuildConfig.class

│   │   ├── HanziToPinyin$Token.class

│   │   ├── HanziToPinyin.class

│   │   ├── LetterIndexView$1.class

│   │   ├── LetterIndexView$OnTouchLetterIndex.class

│   │   ├── LetterIndexView.class

│   │   ├── MainActivity$1.class

│   │   ├── MainActivity$2.class

│   │   ├── MainActivity$3.class

│   │   ├── MainActivity$4.class

│   │   ├── MainActivity$5.class

│   │   ├── MainActivity$MemberSortUtil.class

│   │   ├── MainActivity.class

│   │   ├── PhoneAdapter$ViewHolder.class

│   │   ├── PhoneAdapter.class

│   │   ├── PhoneBean.class

│   │   ├── PinnedSectionListView$1.class

│   │   ├── PinnedSectionListView$2.class

│   │   ├── PinnedSectionListView$3.class

│   │   ├── PinnedSectionListView$PinnedSection.class

│   │   ├── PinnedSectionListView$PinnedSectionListAdapter.class

│   │   ├── PinnedSectionListView.class

│   │   ├── R$array.class

│   │   ├── R$attr.class

│   │   ├── R$color.class

│   │   ├── R$dimen.class

│   │   ├── R$drawable.class

│   │   ├── R$id.class

│   │   ├── R$layout.class

│   │   ├── R$string.class

│   │   └── R.class

│   ├── classes.dex

│   ├── dexedLibs

│   │   └── android-support-v4-4f4fbb96783ca97515548475b8d7a912.jar

│   ├── jarlist.cache

│   ├── PhoneDemo.apk

│   ├── res

│   │   └── crunch

│   │   ├── drawable-hdpi

│   │   │   └── ic_launcher.png

│   │   ├── drawable-mdpi

│   │   │   └── ic_launcher.png

│   │   ├── drawable-xhdpi

│   │   │   ├── edit_search.png

│   │   │   └── ic_launcher.png

│   │   └── drawable-xxhdpi

│   │   └── ic_launcher.png

│   └── resources.ap_

├── gen

│   └── com

│   └── example

│   └── phonedemo

│   ├── BuildConfig.java

│   └── R.java

├── ic_launcher-web.png

├── libs

│   └── android-support-v4.jar

├── proguard-project.txt

├── project.properties

├── res

│   ├── drawable-hdpi

│   │   └── ic_launcher.png

│   ├── drawable-mdpi

│   │   └── ic_launcher.png

│   ├── drawable-xhdpi

│   │   ├── edit_search.png

│   │   └── ic_launcher.png

│   ├── drawable-xxhdpi

│   │   └── ic_launcher.png

│   ├── layout

│   │   ├── activity_main.xml

│   │   ├── item_phone_item.xml

│   │   └── item_phone_title.xml

│   ├── values

│   │   ├── arrays.xml

│   │   ├── colors.xml

│   │   ├── dimens.xml

│   │   └── strings.xml

│   └── values-w820dp

│   └── dimens.xml

└── src

└── com

└── example

└── phonedemo

├── HanziToPinyin.java

├── LetterIndexView.java

├── MainActivity.java

├── PhoneAdapter.java

├── PhoneBean.java

└── PinnedSectionListView.java

30 directories, 68 files

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值