Exemple #1
0
        /// <summary>
        /// Gets the screen width of the device adjusted for DPI
        /// </summary>
        /// <returns></returns>
        public double GetScreenWidth()
        {
#if ANDROID
            return(AndroidUtil.GetViewAreaWidth(activity.Resources));
#elif IOS
            return(iOSUtil.GetRawViewWidth());
#else
            throw new NotImplementedException();
#endif
        }