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

这个添加view的时候位置是不是有添加错?展开的时候,顺序反了 #3

Open
michael0591 opened this issue Jul 12, 2017 · 1 comment

Comments

@michael0591
Copy link

如,DEMO中顺序是"炒河粉", "炒米粉","隆江猪脚饭", "烧鸭饭", "叉烧饭",只显示前3个,点击展开后,显示为"炒河粉", "炒米粉","隆江猪脚饭", "叉烧饭", "烧鸭饭" 而不是正常的"炒河粉", "炒米粉","隆江猪脚饭", "烧鸭饭", "叉烧饭" 叉烧和烧鸭顺序反了。经测试,在ExpandableLinearLayout类中,将addItem方法中的addView(view, childCount - 2); 改成addView(view, childCount - 1); 即可正常顺序了。

另外,此例没有item项的点击事件。自己补了个,功能是有实现 但性能不知道好不好。

@chaychan
Copy link
Owner

@michael0591 已经修复你所说的问题,并且也添加了子条目点击的监听,版本更新为1.0.1

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

2 participants