material-components / material-components/material-components-android
[Tab Layout] Tab layout selection flickering
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description:** When using material components for android 1.3.0 and higher version the tabs selection is flicking, creating visual bug
https://user-images.githubusercontent.com/11180452/111029443-e4e2d400-83fc-11eb-9588-1b5ece1aef90.mov
**Expected behavior:** The flicking should not be visible as in version 1.2.0
**Source code:**
``
**Android API version:** Android API 30
**Material Library version:** 1.3.0 and also 1.4.0-alpha01
**Device:** PIXEL3, Xiaomi Mi A2, but it happens and all devices I have tested it on
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
Start by reproducing the flicker with the provided TabLayout configuration on Android API 30 using Material Components 1.3.0 or 1.4.0-alpha01, then compare it with version 1.2.0. Done means tab selection no longer visibly flickers and the behavior matches the expected result shown for the older version.
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
- Mostly clear
- Newbie friendliness
- 35/100