仿Android联系人列表界面的demo,具有快速索引功能和搜索功能

时间:2016-08-20 11:01 来源:互联网 作者:源码搜藏收藏

  • 源码类别:其它控件
  • 源码大小:未知
  • 编码格式:gbk,utf8,不限
  • 运行环境:php+mysql
  • 广告推荐

ContactPicker - 仿 Android 联系人列表界面的 Demo ,具有快速索引功能和搜索功能。(The Demo of imitation Android contact list UI with fast indexing and search capabilities.)

截图 Screenshot

screenshot_gif

下载 Demo Download

安装后请确保该应用有读取联系人权限。(After installation make sure that the application has permission to read contacts.)

Download

博客 Blog

《快速打造仿Android联系人界面》

用法 Usage

step 1

把QuickIndexBar控件添加到你的布局文件中。(Include the QuickIndexBar widget in your layout.)

<com.yuqirong.contactpicker.view.QuickIndexBar
    android:id="@+id/qib"
    android:layout_width="25dp"
    android:layout_height="match_parent"
    android:layout_alignParentRight="true"
    android:background="#aa000000" />

step 2

可以在onCreate(Bundle savedInstanceState)中添加OnIndexChangeListener。具体使用方法可以参考代码。(You can add theOnIndexChangeListener for QuickIndexBar in onCreate(Bundle savedInstanceState).Specific methods can refer to the code.)

qib.setOnIndexChangeListener(new QuickIndexBar.OnIndexChangeListener() {
        @Override
        public void onIndexChange(int section) {
            ...
        }

        @Override
        public void onActionUp() {
            ...
        }
    });

好了,享受吧!(Well, enjoy it!)

自定义属性 Customization

你可在下面属性中自定义任何你想要的。(You can customize any of the following properties you want.)

Name format Description
font_color color|reference 字体颜色(Font Color)
selected_font_color color|reference 选中时字体的颜色(Selected Font Color)
font_size dimension|reference 字体大小(Font Size)

本站资源仅限于学习研究,严禁从事商业或者非法活动! 源码搜藏网所有源码来自互联网转载与用户上传分享,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!

其它控件下载排行

最新文章