nit
nit copied to clipboard
Calculator example on Android: font size problem
Running 'scientific14.apk' on my Moto-G the letters on the buttons and the input/result line don't fit the available size. It looks like they might narrowly fit the space but are aligned wrongly in the available space. The letters in the input/result line are cutoff at the top while the button letters/numbers are missing their bottom part.
You are welcome to tweak the font size values to find what fits on your device and PR the new values. I would like the API 14 variant to work (and look decent) on as many devices as possible.
simply commenting out .setTextSize calls works well on my Moto G device. Looking at stackoverflow I do not see any general simple and good solution.
Either there could be a user preference or text size needs to be tested against available space and adjusted at runtime.
Given that this problem may hit many apps the interface to the GUI toolkit should probably have this logic builtin.
BTW I really like how simple it is to create (mostly) portable interfaces:)