Android's Ti.UI.Label is currently hard-coded to a font size of 15 using the "tiapp.xml" property's "ti.ui.defaultunit". The problem with this is if you set the default unit to pixels (ie: px), then the label will default to "15px" and be too small to read on high DPI devices. The label's default font size should be hard-coded to "dp".
We don't have this issue with any of our other UI features such as Button, TextField, Picker, etc. All other UI elements use "dp" by default. Only our Android Label has this problem.
iOS does not have this problem.
Steps to reproduce:
- Create a Titanium classic app.
- Set up the "tiapp.xml" file's default unit to "px" (pixels) as shown below.
- Use the "app.js" below.
- Build and run on an Android device that is xxhdpi or higher.
- Notice that the text is very tiny. (This is the bug.)