Пример #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            var _lang = app.GetString("Language", "en");

            ChangeLanguage(_lang);

            base.OnCreate(savedInstanceState);
            Explode fade  = new Explode();
            Slide   fade2 = new Slide(GravityFlags.Right);

            fade.ExcludeTarget(Resource.Id.toolBar, true);
            Window.EnterTransition = fade;
            Window.ExitTransition  = fade2;

            // Create your application here
            SetContentView(Resource.Layout.my_account);
            mFullname      = FindViewById <EditText>(Resource.Id.edtFullname);
            mPhoneNo       = FindViewById <EditText>(Resource.Id.edtPhoneNumber);
            mConfirPhoneNo = FindViewById <EditText>(Resource.Id.edtConfPhoneNumber);
            mLocation      = FindViewById <EditText>(Resource.Id.edtLocation);

            //Set Current Ifo
            mFullname.Text = app.GetString("Fullname", string.Empty);
            mPhoneNo.Text  = app.GetString("PhoneNumber", string.Empty);

            mLocation.Text = app.GetString("MyLocation", string.Empty);

            mToolbar = FindViewById <Android.Support.V7.Widget.Toolbar>(Resource.Id.toolBar);

            SetSupportActionBar(mToolbar);
            SupportActionBar ab = SupportActionBar;

            ab.SetDisplayHomeAsUpEnabled(true);

            Progress = new ProgressbarSetup();
        }