List of usage examples for android.app Dialog requestWindowFeature
public final boolean requestWindowFeature(int featureId)
From source file:com.applivery.applvsdklib.ui.views.update.MustUpdateViewImpl.java
/** * Overrided in order to get fullScreen dialog * @param savedInstanceState//from w ww .j av a 2 s.c o m * @return */ @Override public Dialog onCreateDialog(final Bundle savedInstanceState) { final RelativeLayout root = new RelativeLayout(getActivity()); root.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); final Dialog dialog = new Dialog(getActivity()); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setContentView(root); dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.YELLOW)); dialog.getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); return dialog; }
From source file:com.mindorks.framework.mvp.ui.base.BaseDialog.java
@NonNull @Override//from w w w. j a v a2 s.co m public Dialog onCreateDialog(Bundle savedInstanceState) { // the content final RelativeLayout root = new RelativeLayout(getActivity()); root.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)); // creating the fullscreen dialog final Dialog dialog = new Dialog(getContext()); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setContentView(root); if (dialog.getWindow() != null) { dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); dialog.getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); } dialog.setCanceledOnTouchOutside(false); return dialog; }
From source file:com.pyamsoft.dontsuckmp.album.AlbumDialog.java
@NonNull @Override/* w w w. ja v a 2 s . com*/ public Dialog onCreateDialog(Bundle savedInstanceState) { final Dialog dialog = super.onCreateDialog(savedInstanceState); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); return dialog; }
From source file:com.zpwebsites.linuxonandroid.Install_Debian_Testing_2.java
private void downloads(Context context) { final Dialog dialog = new Dialog(context); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setContentView(R.layout.download_debian_menu); dialog.setCancelable(true);/*from w w w . java2s. c o m*/ Button btn_DownloadLarge = (Button) dialog.findViewById(R.id.btn_DownloadLarge); btn_DownloadLarge.setOnClickListener(new OnClickListener() { public void onClick(View v) { if (AppPreferences.getPrefs().getString("ANDROID", "1").equals("4.3")) { downloadImage(v.getContext(), CFG.torrentURL_Debian_Testing_Large_ext4, CFG.imageURL_Debian_Testing_Large_ext4); } else { downloadImage(v.getContext(), CFG.torrentURL_Debian_Testing_Large_ext2, CFG.imageURL_Debian_Testing_Large_ext2); } dialog.dismiss(); } }); Button btn_DownloadSmall = (Button) dialog.findViewById(R.id.btn_DownloadSmall); btn_DownloadSmall.setOnClickListener(new OnClickListener() { public void onClick(View v) { if (AppPreferences.getPrefs().getString("ANDROID", "1").equals("4.3")) { downloadImage(v.getContext(), CFG.torrentURL_Debian_Testing_Small_ext4, CFG.imageURL_Debian_Testing_Small_ext4); } else { downloadImage(v.getContext(), CFG.torrentURL_Debian_Testing_Small_ext2, CFG.imageURL_Debian_Testing_Small_ext2); } dialog.dismiss(); } }); Button btn_DownloadCore = (Button) dialog.findViewById(R.id.btn_DownloadCore); btn_DownloadCore.setOnClickListener(new OnClickListener() { public void onClick(View v) { if (AppPreferences.getPrefs().getString("ANDROID", "1").equals("4.3")) { downloadImage(v.getContext(), CFG.torrentURL_Debian_Testing_Core_ext4, CFG.imageURL_Debian_Testing_Core_ext4); } else { downloadImage(v.getContext(), CFG.torrentURL_Debian_Testing_Core_ext2, CFG.imageURL_Debian_Testing_Core_ext2); } dialog.dismiss(); } }); dialog.show(); }
From source file:com.zpwebsites.linuxonandroid.Install_Ubuntu1310_2.java
private void downloads(Context context) { final Dialog dialog = new Dialog(context); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setContentView(R.layout.download_ubuntu1310_menu); dialog.setCancelable(true);//from w w w.j a va 2 s . co m Button btn_DownloadLarge = (Button) dialog.findViewById(R.id.btn_DownloadLarge); btn_DownloadLarge.setOnClickListener(new OnClickListener() { public void onClick(View v) { if (AppPreferences.getPrefs().getString("ANDROID", "1").equals("4.3")) { downloadImage(v.getContext(), CFG.torrentURL_Ubuntu1310_Large_ext4, CFG.imageURL_Ubuntu1310_Large_ext4); } else { downloadImage(v.getContext(), CFG.torrentURL_Ubuntu1310_Large_ext2, CFG.imageURL_Ubuntu1310_Large_ext2); } dialog.dismiss(); } }); Button btn_DownloadSmall = (Button) dialog.findViewById(R.id.btn_DownloadSmall); btn_DownloadSmall.setOnClickListener(new OnClickListener() { public void onClick(View v) { if (AppPreferences.getPrefs().getString("ANDROID", "1").equals("4.3")) { downloadImage(v.getContext(), CFG.torrentURL_Ubuntu1310_Small_ext4, CFG.imageURL_Ubuntu1310_Small_ext4); } else { downloadImage(v.getContext(), CFG.torrentURL_Ubuntu1310_Small_ext2, CFG.imageURL_Ubuntu1310_Small_ext2); } dialog.dismiss(); } }); Button btn_DownloadCore = (Button) dialog.findViewById(R.id.btn_DownloadCore); btn_DownloadCore.setOnClickListener(new OnClickListener() { public void onClick(View v) { if (AppPreferences.getPrefs().getString("ANDROID", "1").equals("4.3")) { downloadImage(v.getContext(), CFG.torrentURL_Ubuntu1310_Core_ext4, CFG.imageURL_Ubuntu1310_Core_ext4); } else { downloadImage(v.getContext(), CFG.torrentURL_Ubuntu1310_Core_ext2, CFG.imageURL_Ubuntu1310_Core_ext2); } dialog.dismiss(); } }); dialog.show(); }
From source file:org.dmfs.android.colorpicker.ColorPickerDialogFragment.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { Dialog result = super.onCreateDialog(savedInstanceState); result.requestWindowFeature(Window.FEATURE_NO_TITLE); result.setOnCancelListener(this); return result; }
From source file:svenmeier.coxswain.view.AbstractValueFragment.java
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { Dialog dialog = super.onCreateDialog(savedInstanceState); dialog.requestWindowFeature(STYLE_NO_TITLE); return dialog; }
From source file:com.zpwebsites.linuxonandroid.Install_Ubuntu13_2.java
private void downloads(Context context) { final Dialog dialog = new Dialog(context); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setContentView(R.layout.download_ubuntu13_menu); dialog.setCancelable(true);// w w w.j a v a 2 s . c om Button btn_DownloadCore = (Button) dialog.findViewById(R.id.btn_DownloadCore); btn_DownloadCore.setOnClickListener(new OnClickListener() { public void onClick(View v) { if (AppPreferences.getPrefs().getString("ANDROID", "1").equals("4.3")) { downloadImage(v.getContext(), CFG.torrentURL_Ubuntu13_Core_ext4, CFG.imageURL_Ubuntu13_Core_ext4); } else { downloadImage(v.getContext(), CFG.torrentURL_Ubuntu13_Core_ext2, CFG.imageURL_Ubuntu13_Core_ext2); } dialog.dismiss(); } }); Button btn_DownloadLarge = (Button) dialog.findViewById(R.id.btn_DownloadLarge); btn_DownloadLarge.setOnClickListener(new OnClickListener() { public void onClick(View v) { if (AppPreferences.getPrefs().getString("ANDROID", "1").equals("4.3")) { downloadImage(v.getContext(), CFG.torrentURL_Ubuntu13_Large_ext4, CFG.imageURL_Ubuntu13_Large_ext4); } else { downloadImage(v.getContext(), CFG.torrentURL_Ubuntu13_Large_ext2, CFG.imageURL_Ubuntu13_Large_ext2); } dialog.dismiss(); } }); Button btn_DownloadSmall = (Button) dialog.findViewById(R.id.btn_DownloadSmall); btn_DownloadSmall.setOnClickListener(new OnClickListener() { public void onClick(View v) { if (AppPreferences.getPrefs().getString("ANDROID", "1").equals("4.3")) { downloadImage(v.getContext(), CFG.torrentURL_Ubuntu13_Small_ext4, CFG.imageURL_Ubuntu13_Small_ext4); } else { downloadImage(v.getContext(), CFG.torrentURL_Ubuntu13_Small_ext2, CFG.imageURL_Ubuntu13_Small_ext2); } dialog.dismiss(); } }); dialog.show(); }
From source file:com.kubotaku.android.code4kyoto5374.fragments.NotifySettingsDialogFragment.java
@NonNull @Override/*from w ww . jav a 2 s . c o m*/ public Dialog onCreateDialog(Bundle savedInstanceState) { Dialog dialog = super.onCreateDialog(savedInstanceState); // title? dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); return dialog; }
From source file:piuk.blockchain.android.ui.SendCoinsActivity.java
@Override protected Dialog onCreateDialog(final int id) { final WebView webView = new WebView(this); webView.loadUrl("file:///android_asset/help_send_coins" + languagePrefix() + ".html"); final Dialog dialog = new Dialog(this); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setContentView(webView);//w w w.ja va2 s. com dialog.setCanceledOnTouchOutside(true); return dialog; }