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

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

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

ProgressDialog.getContext介绍

暂无

代码示例

代码示例来源:origin: TeamNewPipe/NewPipe

@Override
protected void onPostExecute(String result) {
  super.onPostExecute(result);
  if (progressDialog != null) {
    Utility.copyToClipboard(progressDialog.getContext(), result);
    if (getActivity() != null) {
      progressDialog.dismiss();
    }
  }
}

代码示例来源:origin: androidquery/androidquery

private void dismiss(String url){
    AQuery aq = new AQuery(pd.getContext());			
    aq.dismiss(pd);

代码示例来源:origin: androidquery/androidquery

public void show(String url){
  
  reset();
  
  if(pd != null){
    AQuery aq = new AQuery(pd.getContext());			
    aq.show(pd);
  }
  
  if(act != null){
    act.setProgressBarIndeterminateVisibility(true);
    act.setProgressBarVisibility(true);
  }
  
  if(pb != null){
    pb.setTag(AQuery.TAG_URL, url);
    pb.setVisibility(View.VISIBLE);
  }
  
  if(view != null){
    view.setTag(AQuery.TAG_URL, url);
    view.setVisibility(View.VISIBLE);
  }
  
}

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

private HistoryFragmentActivity getHistoryFragmentActivity(ProgressDialog progressDialog) {
   return (HistoryFragmentActivity)(((android.content.ContextWrapper)progressDialog.getContext()).getBaseContext());
 }

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

Context context = sc.progressDialog.getContext();
CharSequence msg = ContactDisplayUtils.getTtsSpannedPhoneNumber(
    context.getResources(), R.string.menu_callNumber, name);

代码示例来源:origin: com.googlecode.android-query/android-query

private void dismiss(String url){
    AQuery aq = new AQuery(pd.getContext());			
    aq.dismiss(pd);

代码示例来源:origin: com.googlecode.android-query/android-query

public void show(String url){
  
  reset();
  
  if(pd != null){
    AQuery aq = new AQuery(pd.getContext());			
    aq.show(pd);
  }
  
  if(act != null){
    act.setProgressBarIndeterminateVisibility(true);
    act.setProgressBarVisibility(true);
  }
  
  if(pb != null){
    pb.setTag(AQuery.TAG_URL, url);
    pb.setVisibility(View.VISIBLE);
  }
  
  if(view != null){
    view.setTag(AQuery.TAG_URL, url);
    view.setVisibility(View.VISIBLE);
  }
  
}

相关文章