Xamarin.Android 获取屏幕分辨率
var metrics = Resources.DisplayMetrics;
Log.Debug("屏幕分辨率", $"宽={metrics.WidthPixels},高={metrics.HeightPixels},DPI={metrics.Density * 160}");
Log.Debug("屏幕分辨率", $"宽={metrics.WidthPixels},高={metrics.HeightPixels},DPI={metrics.Density * 160}");