本文整理了Java中android.app.ProgressDialog.getContext()
方法的一些代码示例,展示了ProgressDialog.getContext()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ProgressDialog.getContext()
方法的具体详情如下:
包路径:android.app.ProgressDialog
类名称: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);
}
}
内容来源于网络,如有侵权,请联系作者删除!