I am looking at setting the FontSize
of my application based on how big my device is. i.e. If the device is below 8" make the font smaller than the default.
So the device I am using is a Lenovo S8-50 8-Inch Tablet and as you can see in the specifications Screen Size: 8 inches
So looking at some code on Github I see the following:
var d = Resources.System.DisplayMetrics;
this.ScreenHeight = (int)(d.HeightPixels / d.Density);
For this device the number returned is 912
and I can't figure out how this number relates to the device.
So my question is what does this number actually represent?
From the Official documentation:
This will also be helpful:
Understanding density independence