UI bug

Abierto Apto para principiantes
#184 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
85/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
android, java
Área
mobile-dev

Línea de trabajo

Inspecciona res/layout/activity_start.xml, especialmente la fila horizontal que contiene los botones documentation y start y su espacio flexible ponderado. Reproduce el recorte en un emulador de Android a 540 dpi con fontScale 1.3 y luego ajusta el diseño para que tanto los contornos como los fondos de ambos botones sigan siendo completamente visibles. Verifica el diseño en la línea base reportada y con una escala de texto mayor; el issue no identifica ninguna prueba automatizada específica, por lo que las comprobaciones manuales en el emulador son el criterio de finalización.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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)


Lenguaje dominante
Java
Estrellas
877
Forks
121
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de SmartPack/PackageManager

Todos los issues de SmartPack/PackageManager

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.