Fix for default text size being set in PX instead of DP

The default text size in ComponentBase was defined as 10 pixels
instead of 10dp, which causes tiny text and does not reflect
the javadoc and the general behavior of setTextSize(...)
This commit is contained in:
Patrick Ivarsson 2016-12-23 12:38:42 +01:00
parent ccf6b7e3b1
commit 6966b8117e

View file

@ -36,7 +36,7 @@ public abstract class ComponentBase {
/**
* the text size of the labels
*/
protected float mTextSize = 10f;
protected float mTextSize = Utils.convertDpToPixel(10f);
/**
* the text color to use for the labels