Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

RadCalendar events, EventRenderer,(custom painting of events)

$
0
0
Hi Kyle,

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

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>