Skip to content

wustor/GangedRecyclerview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
wustor
Sep 27, 2024
8dcf342 · Sep 27, 2024

History

17 Commits
Feb 5, 2022
Feb 4, 2022
Oct 30, 2021
Feb 4, 2022
Oct 30, 2021
Feb 5, 2022
Feb 4, 2022
Oct 30, 2021
Jun 29, 2017
Jun 29, 2017
Sep 27, 2024
Oct 30, 2021

Repository files navigation

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)

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published