示例#1
0
		public ChangeStatusPopup (Activity _activity) : base (_activity)
		{
			this._activity = _activity;
			progress = ProgressDialog.Show (_activity, "", "", true);
			progress.SetContentView(new ProgressBar(_activity));
			progress.Hide ();
			popupNotice = new PopupNoticeInfomation (_activity);
		}
示例#2
0
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);
			//RequestWindowFeature (WindowFeatures.NoTitle);
			progressDialogParent = ProgressDialog.Show (this, "", "", true);
			progressDialogParent.SetContentView(new ProgressBar(this));
			progressDialogParent.Hide ();
			LayoutInflater.Factory = new TextFactoryManager();
		}
示例#3
0
		public void showProgressRootView(Activity _activity){
			if (progressDialogParentRootView != null) {
				progressDialogParentRootView.Hide ();
				progressDialogParentRootView = null;
			}
			progressDialogParentRootView = ProgressDialog.Show (_activity, "", "", true);
			progressDialogParentRootView.SetContentView(new ProgressBar(_activity));
			progressDialogParentRootView.SetCancelable (true);
			progressDialogParentRootView.Show ();
		}
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            _flurryClient = new FlurryClient();

            _context = this;
            _loginError = new TextView(this);

            SetContentView(Resource.Layout.loginweblayout);
            _endlogin = new TextView(this);
            //_messageDialogBuilder = new AlertDialog.Builder(this);
            _loginWebView = FindViewById<WebView>(Resource.Id.loginWebView);
            _loginWebView.Settings.SavePassword = false;

            //_loginWebView.Settings.JavaScriptEnabled = true;

            _loginWebView.Settings.PluginsEnabled = true;
            _loginWebView.Settings.JavaScriptCanOpenWindowsAutomatically = true;
            _loginWebView.SaveEnabled = false;
            _loginWebView.SetWebViewClient(new ItsbetaLoginWebViewClient(this));
            _loginWebView.SetWebChromeClient(new ItsbetaLoginWebViewChromeClient());
            // "https://www.facebook.com/dialog/oauth?response_type=token&display=popup&client_id={0}&redirect_uri={1}&scope={2}",
            _loginWebView.LoadUrl(String.Format(
                "https://m.facebook.com/dialog/oauth/?response_type=token&" +
                                                    "client_id={0}"+
                                                    "&redirect_uri={1}" +
                                                    "&scope={2}",
                    //"https://www.facebook.com/dialog/oauth/?response_type=token&display=popup&client_id={0}&redirect_uri={1}&scope={2}",
                    AppInfo._fbAppId, AppInfo._loginRedirectUri, AppInfo._fbScope));

            RelativeLayout progressDialogRelativeLayout = new RelativeLayout(this);
            LayoutInflater progressDialoglayoutInflater = (LayoutInflater)BaseContext.GetSystemService(LayoutInflaterService);
            View progressDialogView = progressDialoglayoutInflater.Inflate(Resource.Layout.progressdialoglayout, null);
            _progressDialogMessage = (TextView)progressDialogView.FindViewById(Resource.Id.progressDialogMessageTextView);
            progressDialogRelativeLayout.AddView(progressDialogView);
            _progressDialog = new ProgressDialog(this, Resource.Style.FullHeightDialog);
            _progressDialog.Show();
            _progressDialog.SetContentView(progressDialogRelativeLayout);
            _progressDialog.Dismiss();

            _progressDialog.Show();
            _progressDialog.SetCanceledOnTouchOutside(false);

            /////

            RelativeLayout errorDialogRelativeLayout = new RelativeLayout(this);
            LayoutInflater errorDialoglayoutInflater = (LayoutInflater)BaseContext.GetSystemService(LayoutInflaterService);
            View errorDialogView = errorDialoglayoutInflater.Inflate(Resource.Layout.wrongcodedialoglayout, null);
            _errorDialogReadyButton = (Button)errorDialogView.FindViewById(Resource.Id.readyButton);
            _errorDialogTitle = (TextView)errorDialogView.FindViewById(Resource.Id.textView1);
            _errorDialogMessage = (TextView)errorDialogView.FindViewById(Resource.Id.textView2);

            errorDialogRelativeLayout.AddView(errorDialogView);
            _errorDialog = new Dialog(this, Resource.Style.FullHeightDialog);
            _errorDialog.SetTitle("");
            _errorDialog.SetContentView(errorDialogRelativeLayout);

            ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
            _endlogin.TextChanged += delegate //здесь инициализировать все необходимое перед запуском...
            {
                Finish();
                StartActivity(typeof(FirstBadgeActivity));
            };
            _loginError.TextChanged += delegate { Finish(); StartActivity(typeof(LoginActivity)); };
        }