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

上拉加载问题 #6

Open
cyt1030 opened this issue Aug 31, 2016 · 2 comments
Open

上拉加载问题 #6

cyt1030 opened this issue Aug 31, 2016 · 2 comments

Comments

@cyt1030
Copy link

cyt1030 commented Aug 31, 2016

Scrollview 中添加 listview 上拉加载 白屏问题 如何解决

@canyinghao
Copy link
Owner

Scrollview 中添加 listview会有滑动冲突,解决方法就是1.listview换成LinearLayout,用for循环添加子项。2.重写listview的onMeasure方法,让listview不可滑动。
@Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); }

@cyt1030
Copy link
Author

cyt1030 commented Aug 31, 2016

重写 listview 此方法 我已试过 无效

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