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

[Floating ToolBar] Support scrolling

Aperta
#4,465 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@imhappi ci sta già lavorando.

Dal 11/12/2024.

feature request Widget: FloatingToolbar
Lingua principale
Java
Stelle
17.4k
Fork
3.2k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Description: Items in the Floating Toolbar are getting cut off when the screen cannot accommodate the entire Toolbar.

IMG-20241211-WA0005

Expected Behavior:
The Floating Toolbar should automatically enable scrolling in both horizontal directions to ensure all icons are accessible. This scrolling capability should be integrated into the Floating Toolbar, and it should include fading effects on both ends to indicate more content is available. Manually adding a horizontal scroll (Hscroll) view does not work properly because scrolling conflicts with the centered aspect that the ToolBar has both vertically and horizontally, thus making it not possible to scroll through all of them. It would also be much easier to have the functionality built into the component.

Steps to Reproduce:

  1. Implement a Floating Toolbar with several items.
  2. Display the Floating Toolbar on a device with a screen size that cannot fully accommodate the toolbar's width.
  3. Observe that items get cut off instead of being scrollable or otherwise accessible.

Android API Version: 35

Material Library Version: 1.13.0-alpha08

Device: Samsung Galaxy S23

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.