the-blue-alliance / the-blue-alliance-android

An Android app for accessing information about the FIRST Robotics Competition.
MIT License
76 stars 34 forks source link

Keep team numbers on a single line #905

Closed bherbst closed 5 years ago

bherbst commented 5 years ago

Summary: Two pronged approach to keeping team numbers on a single line:

Theoretically you could make a device where the team number will now be truncated, but it would have to be a very wonky device.

As an added bonus, I also moved some hardcoded android:text values used for the layout preview to tools:text, and added a right padding to team numbers for better symmetry when the team number is 4 digits.

Issues Reference: Resolves #901

Test Plan: Tested with 2, 3, 4, and 5 digit team numbers on a few different devices to see what we would get.

Screenshots:

Here's what it looks like when everything fits fine:

Here's what we get if 4 digit team numbers need to scale down a hair to fit: