Hi Kyle,
Here's how you can create a size that is dependent on the screen size:
Now depending on the current device's screen, the value will be correctly converted.
I hope this information helps.
Regards,
Todor
Telerik
Here's how you can create a size that is dependent on the screen size:
float
value = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, 20, Resources.getSystem().getDisplayMetrics());
this
.paint.setTextSize(value);
Now depending on the current device's screen, the value will be correctly converted.
I hope this information helps.
Regards,
Todor
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items