Skip to content
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

Open
i6u opened this issue May 22, 2017 · 8 comments
Open

每一列加排序功能,该如何操作 #20

i6u opened this issue May 22, 2017 · 8 comments

Comments

@i6u
Copy link

i6u commented May 22, 2017

望前辈提供点思路

@zhouchaoyuan
Copy link
Owner

能具体的说一下吗?我不是太明白

@i6u
Copy link
Author

i6u commented May 25, 2017

需求是做一个可以排序的数据表格,然后点击列标题就能对每一列的数据进行排序,点一次升序,点第二次降序,点第三次恢复正常,想在 excelPanel 这个模块的基础上实现,还望前辈赐教

@zhouchaoyuan
Copy link
Owner

直接对Adapter里面的数据进行排序就行了,数据排序之后notify一下就可以了。(如果不考虑排序动画的话)

@i6u
Copy link
Author

i6u commented May 25, 2017

我看了主内容区实现是一个大的 recycleView 中套了 n(列数)个 垂直布局的 recycleView ,如果对一列布局进行排序,如何让其他列的(recycleView)位置进行相应改变?

@zhouchaoyuan
Copy link
Owner

主内容区域的数据应该是一个二维的list,只要你要排序的那一列改变了位置,对这个二维的list全部做相应的调整就行了(((((我应该说明白了?

@i6u
Copy link
Author

i6u commented May 26, 2017

嗯嗯,我知道了,多谢前辈

@shuaimango
Copy link

请问如果主内容区域的数据类型不一样,如何处理 目前实现的都是单数据类型String

@zhouchaoyuan
Copy link
Owner

你的意思是说主内容区域的数据类型有多种吗

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants