Pixel Ratio Quirks

On all modern devices has a device pixel ratio property. It describes how many physical screen pixels corresponds to one logical pixel in the development platform. For example, the first iPhone had a pixel ratio of 1, which corresponds to a 160dpi screen. The iPhone 4 had a pixel ratio of 2 with a screen of 320dpi. This makes it easier for developers to handle different screen resolution with regards to the physical sizes of UI elements.

What I had not accounted for was that there is a setting on many newer Android devices which can be used to alter the device pixel ratio dynamically. It is called “Display size” in the settings, and can be adjusted to “Small”, “Default”, “Large”, “Larger” or “Largest”. If you try to do this after running Sputter for the first time, you will probably get quirks like these:

GUI quirks after adjusting Display size

This is now fixed. Unfortunately the fix is in the same branch as the ongoing improvements on the note properties. I am not much of a git wizard, so I think I will release it in a new version all at once instead of attempting some magical merge juggling.

Speaking of note properties: It is coming along nicely, and I hope it will be ready for at least a beta release next week. After that the next task will be code cleanup and refactoring, which is long overdue. This is something which does not immediately bring any visible changes, but will make development faster in the long run and will also improve stability of the app.