• Stars
    star
    655
  • Rank 68,765 (Top 2 %)
  • Language
    Java
  • Created over 7 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Recyclerview实现双列表联动,列表悬停

GangedRecyclerview

演示效果

  1. 左侧联动右侧: 点击左侧列表的某一项,背景变色,同时右侧列表中对应的分类滚动到顶部
  2. 右侧列表悬停: 右侧列表滑动的时候相应的标题栏需要在顶部悬停
  3. 标题栏可点击
  4. 右侧联动左侧: 滚动右侧列表,监听滚动的位置,左侧列表需要同步选中相应的列表

列表联动效果图

接入文档

Step 1. Add the JitPack repository to your build file

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

Step 2. Add the dependency

implementation 'com.github.wustor:GangedRecyclerview:1.0.0'

Step 3. 启动GangedRvActivity

val intent = Intent(this, GangedRvActivity::class.java)
//获取SortBean数据,具体可参见Demo
val data = DataUtil.getData(this, path)
val bundle = Bundle()
bundle.putSerializable(IIntent.DATA_TAG, data)
intent.putExtras(bundle)
startActivity(intent)

More Repositories