I am trying to rewrite an app that I wrote for iOS. I was going to write an android version but thought It\'d be better to make this the opportunity to use Xamarin.Forms. Do
Recipe
Create a new Xamarin.Android application named ScreenSize. Edit Main.axml so that it contains two TextViews:
Edit Activity1.cs, change the code in OnCreate to the following:
![enter image description here][1] private int ConvertPixelsToDp(float pixelValue) { var dp = (int) ((pixelValue)/Resources.DisplayMetrics.Density); return dp; }
Run the application. Depending on the device, it will display the screen height and width. The following screen shot is from a Galaxy Nexus:
[image link] http://i.stack.imgur.com/TQhba.png