material-components / material-components/material-components-android

[BottomNavigationView] Active indicator blinking on the edges (API 28)

Open
#2,878 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Widget: BottomNavigation
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

**Description:**
When changing tab, the pill-shaped active indicator is blinking on the edges.

![API28](https://user-images.githubusercontent.com/50991054/181904147-83264a26-ad03-4d1a-8fba-631798a68155.gif)
(Android 9 device)

**Expected behavior:**

![API32](https://user-images.githubusercontent.com/50991054/181904529-8f1d0134-0ba1-4502-99cc-544fe3d9cb60.gif)
(Android 12 device)

**Source code:**
```xml

```

```xml


```

```xml


```

**Android API version:**
Android 9 (API 28)

**Material Library version:**
1.7.0-alpha03

**Device:**
Tested on Pixel 2 (Emulator) and Huawei P10
_(Not able to reproduce the bug on Pixel 3a (API 32) and Asus Zenpad 3s 10 (API 24))_

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

Start by reproducing the blinking active indicator with the BottomNavigationView configuration from activity_main.xml, bottom_navigation_menu.xml, and the selector example on API 28, then compare it with API 24 and API 32. Inspect the BottomNavigationView active-indicator transition and rendering entry points; done means switching tabs no longer blinks at the indicator edges on the affected API without regressing the other tested versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.