material-components / material-components/material-components-android
[ChipGroup] Chip overflow indicator
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Java
- Estrellas
- 17.4k
- Forks
- 3.2k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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:

Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza inspeccionando el comportamiento de singleLine de ChipGroup y su uso de HorizontalScrollView. Define el atributo overflow y el comportamiento del indicador para que los chips se detengan en el ancho disponible mientras indican que hay filtros adicionales; se considerará terminado cuando la presentación del desbordamiento en una sola línea solicitada funcione sin depender de cálculos manuales del ancho.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- android, java
- Área
- mobile
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 42/100