本文整理了Java中android.app.ProgressDialog.onCreate()
方法的一些代码示例,展示了ProgressDialog.onCreate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ProgressDialog.onCreate()
方法的具体详情如下:
包路径:android.app.ProgressDialog
类名称:ProgressDialog
方法名:onCreate
暂无
代码示例来源:origin: JZ-Darkal/AndroidHttpCapture
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.layout_loading2_dialog);
TextView mMessage = (TextView) findViewById(R.id.loading_dialog_message);
if ((mText == null) || (mText.equals(""))) {
mMessage.setVisibility(View.GONE);
} else {
mMessage.setVisibility(View.VISIBLE);
mMessage.setSingleLine(mSingleLine);
mMessage.setEllipsize(TextUtils.TruncateAt.END);
mMessage.setText(mText);
}
mProgressWheel = (ProgressWheel) findViewById(R.id.progressBar);
}
代码示例来源:origin: Vegen/SmartCampus
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.setCanceledOnTouchOutside(false);
this.setMessage("正在加载...");
}
代码示例来源:origin: huntermr/FastAndroid
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
init(getContext());
}
代码示例来源:origin: chiclaim/AndroidMVVMSample
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.dialog_common_loading);
if (!TextUtils.isEmpty(tip)) {
TextView tvTip = (TextView) findViewById(android.R.id.message);
tvTip.setText(tip);
}
setCancelable(false);
}
代码示例来源:origin: tiandawu/IotXmpp
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.loading_progress_dialog);
init();
}
代码示例来源:origin: FudanSELab/train-ticket
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
init(getContext());
}
代码示例来源:origin: Calsign/APDE
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setFieldVisibility("mProgressPercent", progressPercentVisibility);
setFieldVisibility("mProgressNumber", progressNumberVisibility);
}
代码示例来源:origin: gigabytedevelopers/FireFiles
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Resources res = getContext().getResources();
mDefaultColor = res.getColor(R.color.accentColor);
indeterminateDrawable = new MaterialProgressDrawable(getContext(), findViewById(android.R.id.progress));
indeterminateDrawable.setBackgroundColor(CIRCLE_BG_LIGHT);
indeterminateDrawable.setAlpha(255);
indeterminateDrawable.updateSizes(MaterialProgressDrawable.XLARGE);
indeterminateDrawable.setColorSchemeColors(getColor());
indeterminateDrawable.start();
setIndeterminateDrawable(indeterminateDrawable);
}
内容来源于网络,如有侵权,请联系作者删除!