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

[MaterialToolbar] Subtitle is cut off when font-size is increased via accessibility options

オープン
#4,101 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug Widget: TopAppBar
主要言語
Java
スター
17.4k
フォーク
3.2k
PR マージ指標
30日以内にマージされた PR はありません

説明

Description:

When the font-size is increased via the system accessibility settings (fontScale), then the subtitle is being cutoff on the bottom despite using wrap_content on the toolbar.

Screenshot from 2024-03-14 16-15-47
Screenshot from 2024-03-14 16-15-22
Screenshot from 2024-03-14 16-21-17

Expected behavior:

Toolbar should grow in height and keep the default paddings, and center the title/subtitle combo.

Source code:

https://github.com/d4rken-org/sdmaid-se/blob/e10ade68a4e2cae6cccf963862c318e29ba3acf7/app/src/main/res/layout/appcontrol_list_fragment.xml#L8

https://github.com/d4rken-org/sdmaid-se/blob/e10ade68a4e2cae6cccf963862c318e29ba3acf7/app/src/main/res/values/styles.xml#L194

Android API version:

AFAIK, all versions, I tested on Android 13 and 14.

Material Library version:
`1.11.0

Device:
Pixel 6 (and others)

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

リンクされている app/src/main/res/layout/appcontrol_list_fragment.xml と app/src/main/res/values/styles.xml ファイルから始め、Android 13 または 14 でシステムの fontScale を大きくして問題を再現してください。完了条件は、MaterialToolbar が subtitle に合わせて大きくなり、デフォルトの padding を維持し、title/subtitle の組み合わせがクリッピングなしで中央に配置されることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android
領域
mobile
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。