UI bug

Open Beginner friendly
#184 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
85/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
android, java
Domain
mobile-dev

Research direction

Inspect res/layout/activity_start.xml, especially the horizontal row containing the documentation and start buttons and its weighted spacer. Reproduce the clipping on an Android emulator at 540 dpi with fontScale 1.3, then adjust the layout so both button outlines and backgrounds remain fully visible. Verify the layout at the reported baseline and larger text scale; the issue identifies no specific automated test, so manual emulator checks are the completion criterion.

Written by the indexing model from the issue text.

Description

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)


Dominant language
Java
Stars
877
Forks
121
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SmartPack/PackageManager

All issues in SmartPack/PackageManager

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.