material-components / material-components/material-components-android
[TabLayout] Text size problems mainly in samsung devices
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description:** I'm noticing problems mainly on Samsung devices where the text set to tab is not being displayed correctly. When testing on other devices and in the emulator (pixels) the text is displayed correctly, but on some of the samsung devices I test, the text when displayed on the 2nd line is mostly cut off. This can be replicated by increasing the text size and screen size in the settings.
**Expected behavior:** The correct or intended behaviour would be the same as in pixels, where the text would be displayed correctly without being cut off.
**Android API version:** I haven't tested it below, but at least in the latest apis of Samsung's devices it happens (29 plus)
**Material Library version:** 1.12.0
**Device:**
All the devices had the latest updates available.
- SM-A525F/DS (API 34, One UI - 6.1)
- SM-G965F (API 29, One UI - 2.5)
- SM-F900F (API 31, One UI - 4.1.1)

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 TabLayout issue with increased text size and screen size on the listed Samsung devices or API levels, then compare the result with Pixel emulators. The work is done when second-line tab text is displayed fully and matches the expected Pixel behavior.
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