gyf-dev / gyf-dev/ImmersionBar

希望适配ViewPager2

Open
#497 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
11.5k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

在ViewPager2中,setUserVisibleHint不会调用,所以没法在fragment中使用了。

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.

Research direction

Start by reviewing the ViewPager2 and Fragment visibility lifecycle around setUserVisibleHint, since the issue reports that callback is not invoked there. Done means ImmersionBar can be used from fragments hosted by ViewPager2 without relying on that callback.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.