I\'ve got an Activity which uses
Activity
getWindow().getDecorView().getWindowVisibleDisplayFrame(rectangle);
to determine the useable
here is a link to get status bar directly instead of calculate it. It will avoid any issue of getWindowVisibleDisplayFrame which is really inconsistent through platforms and devices.