summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author George Mount <mount@google.com> 2024-07-24 14:42:59 -0700
committer George Mount <mount@google.com> 2024-08-05 22:25:44 +0000
commita5718e0d49054ea8f0ff9d3f2697517d975c1a9f (patch)
tree8d084ab9f8cb7c0221f11fa88425036f3ed29834 /libs/androidfw/misc.cpp
parent9928e34fa49b3807833b77595efaa923a959eb27 (diff)
Change hour and minute alignment in text TimePicker
Fixes: 315085352 Flag: EXEMPT bugfix The "hour" and "minute" text overlap when the fonts are large. This uses the size of the "hour" text and the "50sp" minimum to guarantee that the "hour" can fit. With small fonts, the 50sp is used and the "hour" is center aligned under the EditText. When the fonts are large, the "hour" text is used to size the space and the EditText is aligned to the right of it. Similarly, the minute text is center aligned under its EditText when the fonts are small and left aligned when the fonts are large. Test: manual testing with small and large fonts Change-Id: I8c0e4fba8e425c1959f875662daa5ca087256108
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions