-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
每一列加排序功能,该如何操作 #20
Comments
能具体的说一下吗?我不是太明白 |
需求是做一个可以排序的数据表格,然后点击列标题就能对每一列的数据进行排序,点一次升序,点第二次降序,点第三次恢复正常,想在 excelPanel 这个模块的基础上实现,还望前辈赐教 |
直接对Adapter里面的数据进行排序就行了,数据排序之后notify一下就可以了。(如果不考虑排序动画的话) |
我看了主内容区实现是一个大的 recycleView 中套了 n(列数)个 垂直布局的 recycleView ,如果对一列布局进行排序,如何让其他列的(recycleView)位置进行相应改变? |
主内容区域的数据应该是一个二维的list,只要你要排序的那一列改变了位置,对这个二维的list全部做相应的调整就行了(((((我应该说明白了? |
嗯嗯,我知道了,多谢前辈 |
请问如果主内容区域的数据类型不一样,如何处理 目前实现的都是单数据类型String |
你的意思是说主内容区域的数据类型有多种吗 |
Repository owner
deleted a comment
Feb 2, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
望前辈提供点思路
The text was updated successfully, but these errors were encountered: