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

[TabLayout] Text size problems mainly in samsung devices

Open
#4,444 0 comments 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

**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)

![Screenshot 2024-11-29 at 14 19 24](https://github.com/user-attachments/assets/0c6a1576-207a-4b00-956b-eceba9745819)

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.