UI bug

Aperta Adatta ai principianti
#184 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
85/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
android, java
Ambito
mobile-dev

Direzione di ricerca

Ispeziona res/layout/activity_start.xml, in particolare la riga orizzontale contenente i pulsanti documentation e start e il relativo spaziatore con peso. Riproduci il ritaglio su un emulatore Android a 540 dpi con fontScale 1.3, quindi modifica il layout in modo che sia i contorni sia gli sfondi di entrambi i pulsanti rimangano completamente visibili. Verifica il layout alla baseline segnalata e con una scala del testo maggiore; il problema non indica alcun test automatizzato specifico, quindi i controlli manuali sull’emulatore sono il criterio di completamento.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Welcome screen clips the Documentation and Start button outlines



Environment



  • App PackageManager v8.0 (version code 80)
  • Package com.smartpack.packagemanager
  • Android 9 (API 28) emulator, 1080 × 1920 px, portrait, English UI
  • The comparisons below vary display density and fontScale. DEFAULT uses 420 dpi and fontScale 1.0.
    

Steps to reproduce


Launch PackageManager while the welcome screen is still pending. Inspect the two bottom buttons without pressing Start.


Actual behavior


At 540 dpi/fontScale 1.3 the outer edges of Documentation and Start are cropped by the row. The left side of the Documentation outline and right side of the Start background are visibly cut. The 420/1.0 baseline shows both outlines.


Expected behavior


Both buttons, including their backgrounds and outlines, fit within the welcome screen.


Files to inspect



  • res/layout/activity_start.xml, the horizontal row containing documentation, start and its weighted spacer (decoded lines 9–11).
    

Likely cause


The two 15sp Material buttons use wrap_content and share a single horizontal row. Their labels, icons and insets exceed the row’s available width at the larger text scale. The weighted spacer can collapse, but cannot reclaim enough space once the two intrinsic button widths exceed the budget.


Possible fix


Switch the actions to rows that can stack under a width constraint, or otherwise allocate the full measured width for each button.


Screenshots to attach



DEFAULT 1

(screenshots/DEFAULT.png)

DPI_540_FONT_1_3 1

(screenshots/DPI_540_FONT_1_3.png)


Lingua principale
Java
Stelle
877
Fork
121
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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.

Altre issue di SmartPack/PackageManager

Tutte le issue di SmartPack/PackageManager

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.