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

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

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

ProgressDialog.setIndeterminateDrawable介绍

暂无

代码示例

代码示例来源:origin: joyoyao/superCleanMaster

@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  mIndeterminateDrawable = getArguments().getInt("indeterminateDrawable");
  mMessage = getArguments().getString("message");
  ProgressDialog mProgressDialog = new ProgressDialog(getActivity(),
      AlertDialog.THEME_HOLO_LIGHT);
  if (mIndeterminateDrawable > 0) {
    mProgressDialog.setIndeterminateDrawable(getActivity()
        .getResources().getDrawable(mIndeterminateDrawable));
  }
  if (mMessage != null) {
    mProgressDialog.setMessage(mMessage);
  }
  return mProgressDialog;
}

代码示例来源:origin: geniusgithub/AndroidDialer

@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
  // Create the progress dialog and set its properties
  final ProgressDialog dialog = new ProgressDialog(getActivity());
  dialog.setIndeterminate(true);
  dialog.setIndeterminateDrawable(null);
  dialog.setTitle(mTitle);
  dialog.setMessage(mMessage);
  return dialog;
}

代码示例来源:origin: stackoverflow.com

listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
     public void onItemClick(AdapterView<?> arg0, View arg1,
         final int arg2, long arg3) {
       final ProgressDialog progressBar = ProgressDialog.show(
           VechiclesDetails.this, "", loadingString);
       progressBar.setIndeterminate(true);
       progressBar.setIndeterminateDrawable(getResources()
           .getDrawable(R.anim.progressbar_handler));
       new Thread(new Runnable() {
         public void run() {
           try {
             Intent carDetail = new Intent(
                 Details.this,
                 Screen.class);
             carDetail.putExtra("index", arg2);
             carDetail.putExtra("sellerId", SellerId);
             startActivity(carDetail);
             progressBar.dismiss();
           } catch (Exception e) {
             progressBar.dismiss();
           }
         }
       }).start();
     }
   });

代码示例来源:origin: stackoverflow.com

Dialog.setInverseBackgroundForced(false);
Dialog.setCancelable(false);
Dialog.setIndeterminateDrawable(getResources().getDrawable(R.drawable.progressbar_new));

代码示例来源:origin: stackoverflow.com

Dialog.setInverseBackgroundForced(false);
Dialog.setCancelable(false);
Dialog.setIndeterminateDrawable(getResources().getDrawable(R.drawable.progressbar_new));

相关文章