您好,欢迎来到源码搜藏!分享精神,快乐你我!提示:担心找不到本站?在百度搜索“源码搜藏”,网址永远不丢失!
  • 首 页
  • 在线工具
  • 通过RecyclerView实现的联系人

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

    通过RecyclerView实现联系人的功能。

    usage:

    Step 1. Add the JitPack repository to your build file

    Add it in your root build.gradle at the end of repositories:

        allprojects {
            repositories {
                ...
                maven { url "https://jitpack.io" }
            }
        }
    

    Step 2. Add the dependency

        dependencies {
                compile 'com.android.support:recyclerview-v7:23+'
                compile 'com.github.jiang111:IndexRecyclerView:1.0'
        }
    

    demo:

    1.首字母悬浮在顶部。
    2.侧滑删除联系人。
    3.联系人索引。
     

    效果图: 
    效果





    在head_recyclerview branch实现了带head的RecyclerView 

    效果

    参考的第三方库(部分):

    https://github.com/timehop/sticky-headers-recyclerview 
    https://github.com/daimajia/AndroidSwipeLayout

    通过RecyclerView实现的联系人转载请注明出处http://www.codesocang.com/kj/recyclerviews/33506.html 源码搜藏网所有源码来自用户上传分享,版权问题及牵扯到商业纠纷均与源码搜藏网无关
    标签: