material-components / material-components/material-components-android
[ChipGroup] Chip overflow indicator
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 17.4k
- フォーク
- 3.2k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Currently the ChipGroup supports the singleLine attribute with a HorizontalScrollView so that the chips will always fit in a scrollable list. Unfortunately for some use cases this behavior is not really nice.
For example if you have a list of filters that can be selected on an extra screen and will be displayed in a single line ChipGroup somewhere on the main screen. The user wouldn't really profit from a scrollable single line that will only support viewing the filters. Instead the ChipGroup should display all items till it reaches its space limit and display an indicator (like "...") that lets the user know that there are more filters set.
I'm trying to get this by calculating the container width and the childrens width to decide which chips to remove but it would be nice to have an overflow behavior attribute as a feature that will automatically do this by itself.
It could look like:

コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、ChipGroup の singleLine の動作と HorizontalScrollView の使用箇所を確認します。チップが利用可能な幅で止まり、追加のフィルターがあることを示すように、overflow 属性とインジケーターの動作を定義します。手動の幅計算に依存せず、要求された single-line のオーバーフロー表示が機能すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android, java
- 領域
- mobile
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100