您好,欢迎来到源码搜藏!分享精神,快乐你我!提示:担心找不到本站?在百度搜索“源码搜藏”,网址永远不丢失!
  • 首 页
  • 在线工具
  • 仿Android联系人列表界面的demo,具有快速索引功能和搜索功能

    时间:2016-08-20 11:01 来源:互联网 作者:源码搜藏 浏览:收藏 挑错 推荐 打印

    • 源码类别:其它控件
    • 源码大小:未知
    • 编码格式:gbk
    • 授权方式:免费源码
    • 运行环境:php+mysql
    • 官方网址:暂无
    • 欢迎加入QQ群讨论学习
    • Android学习交流

    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)

    仿Android联系人列表界面的demo,具有快速索引功能和搜索功能转载请注明出处http://www.codesocang.com/kj/other/33463.html 源码搜藏网所有源码来自用户上传分享,版权问题及牵扯到商业纠纷均与源码搜藏网无关
    标签: