material-components / material-components/material-components-android
[TabLayout] Tab layout takes up entire space while using customView
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
Description: Starting release version 1.1.0-alpha10 TabLayout occupies entire space when using itemView
Expected behavior:
Expected as reproduced with 1.1.0-alpha09

All releases after that ->

Source code: Sample application Testy.zip
Android API version: Android API version here
Material Library version:
Works -> 1.1.0-alpha09
Broken -> 1.1.0-alpha10 to 1.3.0-alpha01
Device: Samsung galaxy S8
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 with the Testy.zip sample application and reproduce the TabLayout sizing with a custom itemView on 1.1.0-alpha09, then compare it with 1.1.0-alpha10 through 1.3.0-alpha01. Trace the TabLayout layout behavior that differs between those versions; done means the custom-view layout no longer occupies the entire available space.
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
- 25/100