本文整理汇总了C#中Android.App.ProgressDialog.SetContentView方法的典型用法代码示例。如果您正苦于以下问题:C# ProgressDialog.SetContentView方法的具体用法?C# ProgressDialog.SetContentView怎么用?C# ProgressDialog.SetContentView使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Android.App.ProgressDialog
的用法示例。
在下文中一共展示了ProgressDialog.SetContentView方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ChangeStatusPopup
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: OnCreate
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: showProgressRootView
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 ();
}
示例4: OnCreate
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)); };
}