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:
parent
ccf6b7e3b1
commit
6966b8117e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue