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.

Open
#3,046 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Widget: Tab
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
![Screenshot_20221022-170518](https://user-images.githubusercontent.com/32875468/197331277-547568f7-bc6e-418c-9eda-02bcd4480978.jpg)
![Screenshot_20221022-170555](https://user-images.githubusercontent.com/32875468/197331282-b5ac6c48-346b-4a6a-8f41-3d210f9aa65b.jpg)

**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

Open the contributing guide

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.