code: private int getToolbarHeightAdjustment(boolean bToolbarShown) {
  		int adjustAmount = 0;
  		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
  			boolean translucentStatus = false;
  			// check theme attrs to see if translucent statusbar is set explicitly
  			int[] attrs = {android.R.attr.windowTranslucentStatus};
  			TypedArray a = getTheme().obtainStyledAttributes(attrs);
  			try {
  				translucentStatus = a.getBoolean(0, false);
  			} finally {
  				a.recycle();
  			}
  
  			// also check window flags in case translucent statusbar is set implicitly
  			WindowManager.LayoutParams winParams = getWindow().getAttributes();
  			int bits = WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS;
  			if ((winParams.flags & bits) != 0) {
  				translucentStatus = true;
  			}
  
  			if (translucentStatus) {
  				if (bToolbarShown) {
  					int resourceId = getResources().getIdentifier("status_bar_height", "dimen", "android");
  					if (resourceId > 0) {
  						adjustAmount = getResources().getDimensionPixelSize(resourceId);
  					}
  				}
  
  				/* Add layout listener to ensure keyboard launch resize the screen when android:windowTranslucentStatus=true
  				 * Fixing workaround found here:
  				 * http://stackoverflow.com/questions/8398102/androidwindowsoftinputmode-adjustresize-doesnt-make-any-difference
  				 */
  				decorView = getWindow().getDecorView();
  				contentView = decorView.findViewById(android.R.id.content);
  				decorView.getViewTreeObserver().addOnGlobalLayoutListener(keyboardPresencelLayoutListener);
  			}
  		}
  		return adjustAmount;
  	}
docs: /* Android versions starting with API Level 19, setting translucent statusbar would have two implications:
  1. toolbar of non-model interaction would be partially covered
  2. Keyboard launch won't resize window. (Bug: https://code.google.com/p/android/issues/detail?id=63777)
  The following method will fix both issues