Back to project page HRForecast-WFM.
The source code is released under:
Copyright 2014 Ahmed Shafei
If you think the Android project HRForecast-WFM listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package de.hrf.workforcemanagement.dialog; /*from w w w. j a va2 s. c o m*/ import android.app.Activity; import android.app.Dialog; import android.view.Window; import android.view.WindowManager; public class BaseDialog extends Dialog { private Window win; protected Activity context; public BaseDialog(Activity context, int winHeight, int winWidth) { super(context); this.context = context; win = this.getWindow(); this.setCancelable(true); this.setCanceledOnTouchOutside(true); win.requestFeature(Window.FEATURE_NO_TITLE); win.setFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND, WindowManager.LayoutParams.FLAG_DIM_BEHIND); win.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); win.setLayout(winWidth, winHeight); } }