lsjwzh / lsjwzh/RecyclerViewPager
第一个条目为空么
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 3.5k
- Forks
- 657
- PR merge metrics
- No merged PRs in 30d
Description
int firstPosition = linearLayoutManager.findFirstVisibleItemPosition();
int lastPosition = linearLayoutManager.findLastVisibleItemPosition();
init,the firstPosition and lastPosition equals -1.
recyclerView.getLayoutManager().getChildAt(0) and recyclerView.getLayoutManager().getChildAt(1) are empty.Because I want to realize that the first position child is normal and the second child is half transparent.But I never get the childAt 1. Thank you!
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.
Research direction
Start by reproducing the initialization state described with LinearLayoutManager, including findFirstVisibleItemPosition(), findLastVisibleItemPosition(), and getChildAt(). Inspect the RecyclerViewPager implementation and determine whether the reported empty children are expected before layout. Done should include a clearly defined behavior for accessing the first and second visible children.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100