material-components / material-components/material-components-android
In android10 or above, when the dark mode of the APP is inconsistent with the dark mode of the system, the background rendering of TabLayout is incorrect.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description:** Full description of issue here
In my app, you can forcibly specify whether the app uses dark mode. However, in Android 10 and above, when the system uses a light color theme, but the app forcibly specifies a dark color theme, TabLayout will display an abnormal background color rendering.
**Expected behavior:** Screenshots and/or description of expected behavior


**Android API version:** Android API version here
33
**Material Library version:** Material Android Library version you are using here (e.g., 1.1.0-alpha07)
1.8.0-alpha01
Contributor guide
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, test, or entry point is named. First reproduce the TabLayout background rendering issue on Android API 33 with a light system theme and an app-forced dark theme, then trace the affected component and compare the result with the supplied screenshots; done means the background renders correctly in this configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- design, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100