topview为横向RecyclerView时,滑动导致头部缩回。
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- android, java
- Domain
- mobile-dev
Research direction
Start in StickyNavLayout and reproduce the issue with id_stickynavlayout_topview containing a horizontally scrolling RecyclerView. Inspect the velocityY branch around mOffsetAnimator and compare horizontal scrolling with upward scrolling. Done means horizontal gestures no longer collapse the topview while the intended upward animation still works.
Written by the indexing model from the issue text.
Description
当id_stickynavlayout_topview包含可以左右滑动的RecyclerView时,左右滑动recyclerView会导致头部topview缩回。看了一下StickyNavLayout中下面这几行代码导致了topview缩回。
if (velocityY >= 0) {
mOffsetAnimator.setIntValues(currentOffset, topHeight);
mOffsetAnimator.start();
}
velocityY > 0 或者注释掉 mOffsetAnimator.start();可以解决。但似乎破坏了velocityY>=0时上滑的动画逻辑?
看了一下这里的代码是后来模仿AppLayoutBar merge进来的,是不是还有一点问题。
- 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 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 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 15/100
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