gyf-dev / gyf-dev/ImmersionBar
关于oppo6.0以下手机状态栏适配建议
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 11.5k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
2.对Android5.1版本并且是ColorOS3.0的OPPO机型
使用ColorOS提供ColorStatusbarTintUtil.SYSTEM_UI_FLAG_OP_STATUS_BAR_TINT的Flag来设置状态栏图标黑色效果,由于该标记未公开,开发者需要在应用代码中定义。
https://open.oppomobile.com/wiki/doc#id=10161
参考实例:
final int SYSTEM_UI_FLAG_OP_STATUS_BAR_TINT = 0x00000010;
Window window = getWindow();
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
window.getDecorView().setSystemUiVisibility(SYSTEM_UI_FLAG_OP_STATUS_BAR_TINT);
为方便开发者对于OPPO机型的反色适配,提供了用于设置状态栏显示效果的接口方法,开发者可以根据应用需要动态设置状态
作者是否可以考虑增加oppo手机的处理,Thanks♪(・ω・)ノ
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
No source file or test is named in the issue. Start by reading the linked OPPO documentation and locating the library's Android status-bar configuration entry point; compare its handling with the provided ColorOS flag sequence. Done means OPPO devices running Android 5.1 with ColorOS 3.0 receive the requested status-bar icon appearance.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100