Placeholder in empty certificates tab may be cropped off
See original GitHub issueTechnical details
- Device name: “Galaxy Nexus” Android Emulator template
- Android version: API 23
- Font size: normal
Describe the bug
The placeholder which is shown when no certificates are displayed may be cropped off. See images below.
Steps to reproduce the issue
- Use emulator template as described above
- Open Certificates tab and remove any certificates
The placeholder is then cropped off as seen in the image below.
Expected behaviour
Enough space is available that the layout could be shown in full.
Possible Fix
- Use available space.
- If not enough space is available, no cropped-off text should be displayed, instead the text should be removed completely.
However I don’t know a good way to instruct the layout to do that in a satisfying way.
Additional context
The layout’s bottom, plus a 48dp
margin, aligns to the top of the “+ Certificate” FAB.
This is not the case for the Check In tab, where the placeholder layout aligns only to its parent’s top and bottom. However, this may cause the FAB to be displayed over the placeholder text. This can also be seen in the images.
Screenshots
“Show layout bounds” is enabled in the system’s Developer options, thus the pink space around a layout indicates its margin.
Certificates tab | Check In tab |
---|---|
Internal Tracking ID: EXPOSUREAPP-8721
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
@fynngodau Thanks for reporting the issue.
FYI PR https://github.com/corona-warn-app/cwa-app-android/pull/3842