public override void OnWindowFocusChanged(bool hasFocus) { base.OnWindowFocusChanged(hasFocus); if (MainHeaderBottom <= 0) { var llTabContainer = FindViewById <View>(Resource.Id.llTabContainer); int[] locations = new int[2]; llTabContainer.GetLocationInWindow(locations); MainHeaderBottom = locations[1] - StatusBarTintHelper.GetStatusBarHeight(); var flToolbarBottom = FindViewById <FrameLayout>(Resource.Id.flToolbarBottom); flToolbarBottom.GetLocationInWindow(locations); ToolbarHelper.SetToolbarHeight(locations[1] - StatusBarTintHelper.GetStatusBarHeight()); } llHeader.LayoutParameters.Height = MainHeaderBottom + StatusBarTintHelper.GetStatusBarHeight() + (int)MainApp.ThisApp.Resources.GetDimension(Resource.Dimension.fixedbar_height); }