android.app.ProgressDialog.onCreate()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中android.app.ProgressDialog.onCreate()方法的一些代码示例,展示了ProgressDialog.onCreate()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ProgressDialog.onCreate()方法的具体详情如下:
包路径:android.app.ProgressDialog
类名称:ProgressDialog
方法名:onCreate

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);
}

相关文章