//public override void OnBackPressed() //{ // ViewFunctions.HideCircleProgessbar(circle5); //} protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Create your application here SetContentView(Resource.Layout.LoginActivity); register = (ImageView)FindViewById(Resource.Id.imageView9); register.Click += Register_Click; email = (EditText)FindViewById(Resource.Id.edtEmail); tf = Typeface.CreateFromAsset(Assets, "Quicksand-Bold.otf"); email.SetTypeface(tf, TypefaceStyle.Normal); email.Click += Email_Click; pass = (TextInputEditText)FindViewById(Resource.Id.editpass); tf = Typeface.CreateFromAsset(Assets, "Quicksand-Bold.otf"); pass.SetTypeface(tf, TypefaceStyle.Normal); forgotpass = (TextView)FindViewById(Resource.Id.tvForgotPass); tf = Typeface.CreateFromAsset(Assets, "Quicksand-Bold.otf"); forgotpass.SetTypeface(tf, TypefaceStyle.Bold); forgotpass.Click += Forgotpass_Click; imglogin = (ImageView)FindViewById(Resource.Id.imglogin); imglogin.Click += Imglogin_Click; emailtv = (TextView)FindViewById(Resource.Id.textView2); tf = Typeface.CreateFromAsset(Assets, "Quicksand-Bold.otf"); emailtv.SetTypeface(tf, TypefaceStyle.Normal); passtv = (TextView)FindViewById(Resource.Id.textView3); tf = Typeface.CreateFromAsset(Assets, "Quicksand-Bold.otf"); passtv.SetTypeface(tf, TypefaceStyle.Normal); heading = (TextView)FindViewById(Resource.Id.textView1); tf = Typeface.CreateFromAsset(Assets, "Quicksand-Bold.otf"); heading.SetTypeface(tf, TypefaceStyle.Normal); loadingIndicator = FindViewById <LoadingView>(Resource.Id.loading_view); loginbuttonindicator = FindViewById <LoadingView>(Resource.Id.loading_view_button); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.activity_main); Android.Support.V7.Widget.Toolbar toolbar = FindViewById <Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar); SetSupportActionBar(toolbar); Android.App.AlertDialog.Builder dialog = new Android.App.AlertDialog.Builder(this); dialog.SetTitle("AVISO!"); dialog.SetMessage("Esta aplicación hará uso de servicios como \"Teléfono\", \"Cámará\" y \"Localización\" para conocer el estado actual del teléfono. Es necesario que autorices el uso de estos servicios cuando el dispositivo lo solicite.\n Se enviará un correo por cada aviso de arribo o \"Check-in\" a tus supervisores directos. Favor de utilizarla con moderación."); dialog.SetIcon(Resource.Drawable.baseline_warning_24); dialog.SetNeutralButton("Entendido", NeutralAction); dialog.Show(); fab = FindViewById <FloatingActionButton>(Resource.Id.fab); t = FindViewById <TextInputEditText>(Resource.Id.textInputEditText1); cameraView = FindViewById <ImageView>(Resource.Id.cameraImageView); takePic = FindViewById <FloatingActionButton>(Resource.Id.takePic); linearLayout = FindViewById <LinearLayout>(Resource.Id.linearLayout1); title = FindViewById <TextView>(Resource.Id.homeTitle); //mDrawer = FindViewById<DrawerLayout>(Resource.Id.drawer_layout); takePic.Tag = photoTag; InitializeLocationManager(); mTelephonyMgr = (TelephonyManager)GetSystemService(TelephonyService); if (!(ContextCompat.CheckSelfPermission(this, Manifest.Permission.ReadPhoneState) == (int)Permission.Granted)) { // permission is not granted. If necessary display rationale & request. RequestPhonePermission(); } title.SetTypeface(Typeface.CreateFromAsset(Assets, "Product Sans Regular.ttf"), TypefaceStyle.Bold); t.SetTypeface(Typeface.CreateFromAsset(Assets, "Product Sans Regular.ttf"), TypefaceStyle.Normal); fab.Visibility = ViewStates.Invisible; fab.Click += FabOnClick; takePic.Click += TakeAPicture; }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Create your application here SetContentView(Resource.Layout.Register3); loader = FindViewById <LoadingView>(Resource.Id.loading_view); button_loader = FindViewById <LoadingView>(Resource.Id.loading_view_button); ImageView go = (ImageView)FindViewById(Resource.Id.imglogin); go.Click += Go_Click; RegisterHeading = (TextView)FindViewById(Resource.Id.textView1); tf = Typeface.CreateFromAsset(Assets, "Quicksand-Bold.otf"); RegisterHeading.SetTypeface(tf, TypefaceStyle.Bold); Passtv = (TextView)FindViewById(Resource.Id.textView2); tf = Typeface.CreateFromAsset(Assets, "Quicksand-Bold.otf"); Passtv.SetTypeface(tf, TypefaceStyle.Normal); Confirmtv = (TextView)FindViewById(Resource.Id.textView3); tf = Typeface.CreateFromAsset(Assets, "Quicksand-Bold.otf"); Confirmtv.SetTypeface(tf, TypefaceStyle.Normal); pass = (TextInputEditText)FindViewById(Resource.Id.edtPassreg); tf = Typeface.CreateFromAsset(Assets, "Quicksand-Bold.otf"); pass.SetTypeface(tf, TypefaceStyle.Normal); confirmPass = (TextInputEditText)FindViewById(Resource.Id.edtConfirmPassreg); tf = Typeface.CreateFromAsset(Assets, "Quicksand-Bold.otf"); confirmPass.SetTypeface(tf, TypefaceStyle.Bold); login = (ImageView)FindViewById(Resource.Id.imageView9); login.Click += Login_Click; }