本文整理了Java中android.app.ProgressDialog.requestWindowFeature()
方法的一些代码示例,展示了ProgressDialog.requestWindowFeature()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ProgressDialog.requestWindowFeature()
方法的具体详情如下:
包路径:android.app.ProgressDialog
类名称:ProgressDialog
方法名:requestWindowFeature
暂无
代码示例来源:origin: stackoverflow.com
mSpinner.requestWindowFeature(Window.FEATURE_NO_TITLE);
mSpinner.setMessage("Loading...");
代码示例来源:origin: facebook/facebook-android-sdk
spinner.requestWindowFeature(Window.FEATURE_NO_TITLE);
spinner.setMessage(getContext().getString(R.string.com_facebook_loading));
代码示例来源:origin: multidots/android-app-common-tasks
mSpinner.requestWindowFeature(Window.FEATURE_NO_TITLE);
mSpinner.setMessage("Loading...");
mSpinner.setCancelable(true);
代码示例来源:origin: multidots/android-app-common-tasks
mSpinner.requestWindowFeature(Window.FEATURE_NO_TITLE);
mSpinner.setMessage("Loading...");
mSpinner.setCancelable(true);
代码示例来源:origin: stackoverflow.com
ProgressDialog pDialog = new ProgressDialog(activity.this);
pDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
pDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
pDialog.setCancelable(true);
pDialog.setMessage("Loading...");
pDialog.show();
代码示例来源:origin: vihuela/RAD
private void initDialog(Activity activity) {
dialog = new ProgressDialog(activity);
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
dialog.setCanceledOnTouchOutside(false);
dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
dialog.setMessage("请求网络中...");
}
代码示例来源:origin: LiqiNew/Audioutils
/**
* 获取进度条框
*
* @param content
* @return
*/
protected ProgressDialog showDialog(String content) {
if (null == mDialog) {
mDialog = new ProgressDialog(this);
mDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
mDialog.setCanceledOnTouchOutside(false);
mDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
}
mDialog.setMessage(content);
return mDialog;
}
代码示例来源:origin: Pgrammerybj/AnimationUtils
public void showLoading() {
if (dialog != null && dialog.isShowing()) return;
dialog = new ProgressDialog(this);
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
dialog.setCanceledOnTouchOutside(false);
dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
dialog.setMessage("请稍后...");
dialog.show();
}
代码示例来源:origin: stackoverflow.com
Dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
Dialog.setMessage("Please Wait...");
Dialog.setCancelable(false);
代码示例来源:origin: maimingliang/WxRecoderVideo
public ProgressDialog showProgress(String title, String message, int theme) {
if (mProgressDialog == null) {
if (theme > 0)
mProgressDialog = new ProgressDialog(this, theme);
else
mProgressDialog = new ProgressDialog(this);
mProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
mProgressDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
mProgressDialog.setCanceledOnTouchOutside(false);// 不能取消
mProgressDialog.setIndeterminate(true);// 设置进度条是否不明确
}
if (!StringUtils.isEmpty(title))
mProgressDialog.setTitle(title);
mProgressDialog.setMessage(message);
mProgressDialog.show();
return mProgressDialog;
}
代码示例来源:origin: small-dream/VideoRecord
public ProgressDialog showProgress(String title, String message, int theme) {
if (mProgressDialog == null) {
if (theme > 0)
mProgressDialog = new ProgressDialog(this, theme);
else
mProgressDialog = new ProgressDialog(this);
mProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
mProgressDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
mProgressDialog.setCanceledOnTouchOutside(false);// 不能取消
mProgressDialog.setIndeterminate(true);// 设置进度条是否不明确
}
if (!StringUtils.isEmpty(title))
mProgressDialog.setTitle(title);
mProgressDialog.setMessage(message);
mProgressDialog.show();
return mProgressDialog;
}
代码示例来源:origin: stackoverflow.com
mSpinner = new ProgressDialog(getContext());
mSpinner.requestWindowFeature(Window.FEATURE_NO_TITLE);
mSpinner.setMessage("Loading...");
mContent = new LinearLayout(getContext());
代码示例来源:origin: multidots/android-social-signin-helper
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mSpinner = new ProgressDialog(getContext());
mSpinner.requestWindowFeature(Window.FEATURE_NO_TITLE);
mSpinner.setMessage("Loading...");
mContent = new LinearLayout(getContext());
mContent.setOrientation(LinearLayout.VERTICAL);
setUpTitle();
setUpWebView();
Display display = getWindow().getWindowManager().getDefaultDisplay();
final float scale = getContext().getResources().getDisplayMetrics().density;
float[] dimensions = (display.getWidth() < display.getHeight()) ? DIMENSIONS_PORTRAIT : DIMENSIONS_LANDSCAPE;
addContentView(mContent, new FrameLayout.LayoutParams((int) (dimensions[0] * scale + 0.5f), (int) (dimensions[1] * scale + 0.5f)));
CookieSyncManager.createInstance(getContext());
CookieManager cookieManager = CookieManager.getInstance();
cookieManager.removeAllCookie();
}
代码示例来源:origin: stackoverflow.com
mSpinner.requestWindowFeature(Window.FEATURE_NO_TITLE);
mSpinner.setMessage("Loading...");
代码示例来源:origin: stackoverflow.com
mSpinner.requestWindowFeature(Window.FEATURE_NO_TITLE);
mSpinner.setMessage("Loading...");
代码示例来源:origin: mukeshsolanki/social-login-helper-Deprecated-
@Override protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mSpinner = new ProgressDialog(getContext());
mSpinner.requestWindowFeature(Window.FEATURE_NO_TITLE);
mSpinner.setMessage("Loading...");
mContent = new LinearLayout(getContext());
mContent.setOrientation(LinearLayout.VERTICAL);
setUpTitle();
setUpWebView();
Display display = getWindow().getWindowManager().getDefaultDisplay();
final float scale = getContext().getResources().getDisplayMetrics().density;
float[] dimensions =
(display.getWidth() < display.getHeight()) ? DIMENSIONS_PORTRAIT : DIMENSIONS_LANDSCAPE;
addContentView(mContent, new FrameLayout.LayoutParams((int) (dimensions[0] * scale + 0.5f),
(int) (dimensions[1] * scale + 0.5f)));
CookieSyncManager.createInstance(getContext());
CookieManager cookieManager = CookieManager.getInstance();
cookieManager.removeAllCookie();
}
代码示例来源:origin: stackoverflow.com
pDialog.setMessage("Please wait...");
pDialog.setCancelable(false);
pDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
代码示例来源:origin: stackoverflow.com
mProgressDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
mProgressDialog.setMessage("Loading...");
代码示例来源:origin: square1-io/rich-text-android
spinner.requestWindowFeature(Window.FEATURE_NO_TITLE);
spinner.setMessage(getContext().getString(R.string.loading));
spinner.setOnCancelListener(new OnCancelListener() {
代码示例来源:origin: fr.avianey/facebook-android-api
spinner.requestWindowFeature(Window.FEATURE_NO_TITLE);
spinner.setMessage(getContext().getString(R.string.com_facebook_loading));
spinner.setOnCancelListener(new OnCancelListener() {
内容来源于网络,如有侵权,请联系作者删除!