gyf-dev / gyf-dev/ImmersionBar

状态栏高度问题

Open
#408 1 comment 0 reactions 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

机型:Google Pixel3 XL
系统:Android Q
使用版本:项目中用的是2.3.3,但实际我运行demo的代码也是有问题的。

场景:开发者选项中选择隐藏刘海屏,其计算的高度不正确。实测demo中,方法一和方法二是没问题的,其余的都是有问题的。 我们目前项目里使用的是方法三。

image

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

Reproduce the demo on a Google Pixel 3 XL running Android Q with the display option set to hide the notch. Compare the height results from methods one through three, then inspect the status-bar height calculation used by method three. Done means the calculated height is correct in this configuration and matches the known-good methods.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.