changjiashuai's blog

Runnig...

The future belongs to those who believe in the beauty of their dreams.


Slide Bar相关

##Android-QuickSideBar

帮助快速查阅对应分组的侧边栏,可以配合任意列表,demo中给出配合RecyclerView(浮动分组使用stickyheadersrecyclerview)。

####使用gradle 依赖:

   compile 'com.bigkoo:quicksidebar:1.0.2'

Demo 图片

Config in xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <android.support.v7.widget.RecyclerView
        android:id="@+id/recyclerView"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
    <!-- 这个是浮动的提示 ,配合字母栏实现放大浮动提示滑动到哪个字母-->
    <!--下面的自定义属性都是默认的,可以不写-->
    <!--app:sidebarBackgroundColor 浮动框颜色-->
    <!--app:sidebarTextColor 字母颜色-->
    <!--app:sidebarTextSize 字母尺寸-->
    <com.bigkoo.quicksidebar.QuickSideBarTipsView
        android:id="@+id/quickSideBarTipsView"
        android:layout_width="@dimen/height_quicksidebartips"
        android:layout_height="match_parent"
        android:layout_toLeftOf="@+id/quickSideBarView"
        app:sidebarBackgroundColor="@color/colorPrimary"
        app:sidebarTextColor="@android:color/white"
        app:sidebarTextSize="@dimen/textSize_quicksidebartips" />
    <!-- 这个是字母栏的提示 -->
    <!--下面的自定义属性都是默认的,可以不写-->
    <!--app:sidebarItemHeight 每个字母的高度-->
    <!--app:sidebarTextColor 正常状态下字母颜色-->
    <!--app:sidebarTextColorChoose 选中了的字母颜色-->
    <!--app:sidebarTextSize 正常状态字母尺寸-->
    <!--app:sidebarTextSizeChoose 选中字母尺寸-->
    <com.bigkoo.quicksidebar.QuickSideBarView
        android:id="@id/quickSideBarView"
        android:layout_width="20dp"
        android:layout_height="match_parent"
        android:layout_alignParentRight="true"
        android:layout_marginTop="45dp"
        app:sidebarItemHeight="@dimen/height_quicksidebaritem"
        app:sidebarTextColor="@android:color/black"
        app:sidebarTextColorChoose="@color/colorPrimary"
        app:sidebarTextSize="@dimen/textSize_quicksidebar"
        app:sidebarTextSizeChoose="@dimen/textSize_quicksidebar_choose" />
</RelativeLayout>
config in java code
//联动请看
OnQuickSideBarTouchListener

kongnanlive/SideBar

全新的快速索引导航栏,联系人字母排序侧边栏。

7449/SlideView

模仿微信通讯录侧边快速索引

https://github.com/7449/SlideView

最近的文章

TextView相关

A Custom TextView with trim textDownloadTo add the ReadMoreTextView library to your Android Studio project, simply add the following gradle dependency:compile 'com.borjabravo:readmoretextview:2.0.1'UsageTo use the ReadMoreTextView on your app, a...…

AndroidReadMoreTextView继续阅读
更早的文章

App Intro相关

https://github.com/PaoloRotolo/AppIntro AppIntro is an Android Library that helps you make a cool intro for your app, like the ones in Google apps.##How to useAdd this to your build.gradle:repositories { mavenCentral()}dependencies { compile ...…

AndroidAppIntro继续阅读