async protected override void OnCreate(Bundle bundle) { this.Window.AddFlags(WindowManagerFlags.Fullscreen); base.OnCreate(bundle); var metrics = Resources.DisplayMetrics; widthInDp = ((int)metrics.WidthPixels); heightInDp = ((int)metrics.HeightPixels); Configuration.setWidthPixel (widthInDp); Configuration.setHeigthPixel (heightInDp); vm = this.ViewModel as LOViewModel; int tam = Configuration.getWidth (80); bm_user = Configuration.getRoundedShape(Bitmap.CreateScaledBitmap(getBitmapFromAsset ("icons/nouser.png"), tam,tam, true) ,tam,tam); bmLike = Bitmap.CreateScaledBitmap (getBitmapFromAsset ("images/like.png"), Configuration.getWidth (43), Configuration.getWidth (35), true); drBack = new BitmapDrawable(Bitmap.CreateScaledBitmap (getBitmapFromAsset ("images/fondocondiagonalm.png"), 640, 1136, true)); await ini(); //LoadPagesDataSource (); SetContentView (mainLayout); }
async protected override void OnCreate(Bundle bundle) { this.Window.AddFlags(WindowManagerFlags.Fullscreen); base.OnCreate(bundle); var metrics = Resources.DisplayMetrics; widthInDp = ((int)metrics.WidthPixels); heightInDp = ((int)metrics.HeightPixels); Configuration.setWidthPixel (widthInDp); Configuration.setHeigthPixel (heightInDp); vm = this.ViewModel as LOViewModel; int tam = Configuration.getWidth (80); //bm_user = Configuration.getRoundedShape(Bitmap.CreateScaledBitmap(getBitmapFromAsset ("icons/nouser.png"), tam,tam, true),tam,tam); //bmLike = Bitmap.CreateScaledBitmap (getBitmapFromAsset ("images/like.png"), Configuration.getWidth (43), Configuration.getWidth (35), true); drBack = new BitmapDrawable(Bitmap.CreateScaledBitmap (getBitmapFromAsset ("images/fondocondiagonalm.png"), 640, 1136, true)); LinearLayout test = new LinearLayout (this); test.LayoutParameters = new LinearLayout.LayoutParams (-1, -1); //test.SetBackgroundResource (Resource.Drawable.splash); test.SetBackgroundColor(Color.Black); SetContentView (test); _dialogDownload = new ProgressDialog (this); _dialogDownload.SetCancelable (false); _dialogDownload.SetMessage ("Cargando"); _dialogDownload.Show (); adsImagesPath.Add ("images/ad1.jpg"); adsImagesPath.Add ("images/ad2.jpg"); adsImagesPath.Add ("images/ad3.jpg"); await ini(); //LoadPagesDataSource (); SetContentView (_mainLayout); _dialogDownload.Dismiss (); }