private int computeUsableHeight() { var r = new Rect(); mChildOfContent.GetWindowVisibleDisplayFrame(r); return(Build.VERSION.SdkInt < BuildVersionCodes.Lollipop ? r.Bottom - r.Top : r.Bottom); }