public void AddDrawable(IDrawable drawable) { if (drawables.IsNull()) { drawables = new DrawableList(); } drawables.Add(drawable); }
public Screen(float width, float height) { this.width = width; this.height = height; timerManager = TimerManager.Null; updatables = UpdatableList.Null; drawables = DrawableList.Null; eventHandlers = EventHandlerList.Null; mRootView = CreateRootView(); }
public Application(ApplicationInfo info) { nativeInterface = info.nativeInterface; width = info.width; height = info.height; realWidth = info.realWidth; realHeight = info.realHeight; sharedApplication = this; context = new Context(); updatables = new UpdatableList(1); drawables = new DrawableList(1); cmdLine = CreateCommandLine(); cmdLine.Parse(info.args); }
public ScreenManager() { screens = new List <Screen>(); updatables = new UpdatableList(); drawables = new DrawableList(); }
protected override void OnCreate(Android.OS.Bundle savedInstanceState) { RequestWindowFeature(Android.Views.WindowFeatures.NoTitle); Window.SetFlags(WindowManagerFlags.Fullscreen, WindowManagerFlags.Fullscreen); base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.VerificareCompatibilitate); Backgroud = FindViewById <RelativeLayout> (Resource.Id.relativeLayout1); iView = FindViewById <ImageView> (Resource.Id.imageView1); ConMngr = (ConnectivityManager)GetSystemService(ConnectivityService); SwitchingBackgrounds(); //RenderGif(); CheckInternetThread = new Thread(new ThreadStart(() => { Thread.Sleep(1500); if (CheckInternetConnection().Equals(true)) { Thread.Sleep(1500); if (CheckServerConnection().Equals(true)) { Thread.Sleep(1500); Intent StartLogin = new Intent(this, typeof(Login)); Background = Backgroud.Background; StartLogin.PutExtra("BackgroundByteArray", DrawableConverter.DrawableToByteArray(Backgroud.Background)); SwitchingBackgroundsThread.Abort(); StartActivity(StartLogin); } else { /* AlertDialog.Builder aDiag = new AlertDialog.Builder (this); * aDiag.SetTitle ("Error!"); * aDiag.SetMessage ("Nu s-a putut realiza conexiunea cu serverul!"); * aDiag.SetPositiveButton ("Skip", delegate(object sender, DialogClickEventArgs e) {*/ Intent StartLogin = new Intent(this, typeof(Login)); StartLogin.PutExtra("BackgroundLoginByteArray", DrawableList.IndexOf(Backgroud.Background)); SwitchingBackgroundsThread.Abort(); // GifThread.Abort(); StartActivity(StartLogin); /*}); * * aDiag.SetNegativeButton ("Exit", delegate(object sender, DialogClickEventArgs e) { * RunOnUiThread (() => Toast.MakeText (this, "Couldn't reach the server!Please try again later!", ToastLength.Long).Show ()); * Android.OS.Process.KillProcess (Android.OS.Process.MyPid ()); * }); * * RunOnUiThread (() => aDiag.Show ());*/ } } })); CheckInternetThread.Start(); }
public Gravity(ref DrawableList d) { }
public ScreenManager() { screens = new List<Screen>(); updatables = new UpdatableList(); drawables = new DrawableList(); }