listview in viewpager 有问题当数据源的size=3,切换的时候数据源左边和右边的个数会改变
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start by reproducing the ViewPager/ListView behavior with a data source of size 3, then inspect the shown scrollTo override and the isTopHidden condition. Verify the header, adjacent item counts, and bottom ListView respond correctly to an upward fling after the header hides.
Written by the indexing model from the issue text.
Description
bug : listview in viewpager 有问题当数据源的size=3,切换的时候数据源左边和右边的个数会改变
question:当头部可见时,用力向上滑,当头部隐藏后,底部的ListView中的类容不会通过惯性自动向上滑动,但我见过的其他应用是可以惯性滑动的,例如QQ音乐,魅族应用中心详情
看了代码是吧height的大小限制,要实现例如新浪微博的评论效果,要怎么做呢
@Override
public void scrollTo(int x, int y) {
if (y < 0) {
y = 0;
}
Log.e("scrollTo", "y======" + y);
if (y > mTopViewHeight) {
y = mTopViewHeight;
}
if (y != getScrollY()) {
super.scrollTo(x, y);
}
isTopHidden = getScrollY() == mTopViewHeight;
}
- Dominant language
- Java
- Stars
- 1.4k
- Forks
- 437
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from hongyangAndroid/Android-StickyNavLayout
-
Indicator想参与联动 怎么做呢 Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
上拉后,下拉到底部 上面有空白 Open
Difficulty 3/5 1-2 days Newbie friendliness 25/100
hongyangAndroid/Android-StickyNavLayout#42 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
hongyangAndroid/Android-StickyNavLayout#35 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 15/100
hongyangAndroid/Android-StickyNavLayout#33 · 3 comments ·
All issues in hongyangAndroid/Android-StickyNavLayout
Similar issues
-
area-deployment area-integrations triage:bot-seen
Difficulty 2/5 Half a day Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
apache/flink-agents#1156 ·
-
[source-shopify] FAILED bulk operation without partialDataUrl is silently treated as successful Openarea/connectors autoteam community connectors/source/shopify needs-triage team/use type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100