Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

调用自动定位方法,Scroll到某个Item时,布局出现错乱

Open
#121 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, java
Domain
mobile

Research direction

Start by reproducing the layout issue with StaggeredGridLayoutManager after calling scrollToPositionWithOffset(position, 0) on the listView; compare it with scrollToPosition(position). The issue does not name a source file or test, so first locate the RecyclerView setup and determine what layout behavior is expected after automatic positioning.

Written by the indexing model from the issue text.

Description

StaggeredGridLayoutManager layoutManager = (StaggeredGridLayoutManager) listView.getLayoutManager();
// layoutManager.scrollToPosition(position);
layoutManager.scrollToPositionWithOffset(position, 0);
这样自定定位之后布局出现错乱,有人遇到吗,求解决谢谢
@hongyangAndroid @

Dominant language
Java
Stars
4.7k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hongyangAndroid/baseAdapter

All issues in hongyangAndroid/baseAdapter

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.