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

[TabLayout] Tab indicator gets stuck in an intermediate position when used with ViewPager

Open
#3,128 1 comment 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

**How to reproduce:**
- Open TabsControllableDemoFragment (M3 Catalog)
- Swipe ViewPager content a little towards the next page. Don't release your finger!
- Tap "Tab 2".
- Swipe towards the previous page a little and release the finger.

https://user-images.githubusercontent.com/82187521/205595002-5f62b9c4-7b9a-41b4-934a-81bbf030c548.mp4

**Library version:** 1.8.0-alpha03

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 sequence in TabsControllableDemoFragment from the M3 Catalog with the specified ViewPager gestures and Tab 2 tap. Trace the TabLayout and ViewPager interaction; done means the tab indicator no longer remains in an intermediate position after the final swipe.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.