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

不支持的PagerAdapter,在fragment中使用该自定义view会出现viewPager高度不会随着滑动改变的情况。

Open
#7 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 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 height behavior with the custom view and ViewPager in a fragment, then compare it with the activity case described in the issue. Inspect the dispatchTouchEvent path and the effect of requestLayout; done means the fragment's ViewPager height updates correctly without an unacceptable performance impact.

Written by the indexing model from the issue text.

Description

第一个问题已经自行解决,第二个问题我是在dispatchTouchEvent方法中加入了requestLayout viewPager的高度才正常。在activity中使用没有此情况,不知道这样会不会影响性能。

Dominant language
Java
Stars
1.4k
Forks
437
PR merge metrics
No merged PRs in 30d

Getting set up

We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.

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/Android-StickyNavLayout

All issues in hongyangAndroid/Android-StickyNavLayout

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.