material-components / material-components/material-components-android
[TabLayout] Tab indicator gets stuck in an intermediate position when used with ViewPager
Nobody has claimed this yet.
- 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
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 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