private int computeUsableHeight() { Rect r = new Rect(); mChildOfContent.GetWindowVisibleDisplayFrame(r); return(r.Bottom - r.Top); }