¡@

Home 

2014/10/16 ¤W¤È 08:27:38

android Programming Glossary: windowmanager.layoutparams.flag_dim_behind

ActionBar in a DialogFragment

http://stackoverflow.com/questions/11425020/actionbar-in-a-dialogfragment

chosen activity on the manifest activity.requestWindowFeature Window.FEATURE_ACTION_BAR activity.getWindow .setFlags WindowManager.LayoutParams.FLAG_DIM_BEHIND WindowManager.LayoutParams.FLAG_DIM_BEHIND LayoutParams params activity.getWindow .getAttributes params.height 850 fixed.. Window.FEATURE_ACTION_BAR activity.getWindow .setFlags WindowManager.LayoutParams.FLAG_DIM_BEHIND WindowManager.LayoutParams.FLAG_DIM_BEHIND LayoutParams params activity.getWindow .getAttributes params.height 850 fixed height params.width 850 fixed width params.alpha..

DialogFragment with clear background (not dimmed)

http://stackoverflow.com/questions/13822842/dialogfragment-with-clear-background-not-dimmed

timed modeless dialog

http://stackoverflow.com/questions/4132699/timed-modeless-dialog

text and cancel button. The main catch is in setting WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL and resetting WindowManager.LayoutParams.FLAG_DIM_BEHIND . Created a Dialog with custom content if progressDialog null progressDialog new Dialog activityRequestingProgressDialog.. WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL window.clearFlags WindowManager.LayoutParams.FLAG_DIM_BEHIND window.setGravity Gravity.BOTTOM progressDialog.show progressText.setText text progressBar.setProgress percent And this..

Android 2.3 wifi hotspot API

http://stackoverflow.com/questions/7048922/android-2-3-wifi-hotspot-api

getWindow .addFlags WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON WindowManager.LayoutParams.FLAG_DIM_BEHIND wifi WifiManager getSystemService Context.WIFI_SERVICE @Override public void onResume super.onResume updateStatusDisplay..