Skip to content

仿微信读书APP滑动时可以弯曲成箭头的指示条

Notifications You must be signed in to change notification settings

zaaach/SlidingIndicatorBar

Repository files navigation

SlidingIndicatorBar

License Api

可以弯曲的滑动指示条控件

Preview

gif

Install

1: 项目根目录的build.gradle添加如下配置:

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

2: app添加依赖:

dependencies {
	 implementation 'com.github.zaaach:SlidingIndicatorBar:x.y.z'
}

记得把x.y.z替换为jitpack中的数字

Usage

xml里直接使用

<com.github.zaaach.widget.SlidingIndicatorBar
        android:layout_width="240dp"
        android:layout_height="wrap_content"
        app:sib_bar_color="@color/purple_200"
        app:sib_bar_height="16dp"
        app:sib_bending_height="56dp"
        app:sib_bending_ratio="1"
        app:sib_bending_direction="down"/>

相关自定义属性:

属性 描述
sib_bar_height dimension|reference 指示条高度
sib_bar_color color|reference 指示条颜色
sib_bending_height dimension|reference 可弯曲最大高度
sib_bending_ratio float 弯曲比例
sib_bending_direction enum up,down

About me

掘金: https://juejin.im/user/56f3dfe8efa6310055ac719f

淘宝店: LEON生活馆

LEON

😉淘宝店求爆单😉

About

仿微信读书APP滑动时可以弯曲成箭头的指示条

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages