getWindowVisibleDisplayFrame() gives different values in Android 2.2, 2.3 (but not 2.3.3)

前端 未结 4 1284
执笔经年
执笔经年 2021-01-06 03:11

I\'ve got an Activity which uses

getWindow().getDecorView().getWindowVisibleDisplayFrame(rectangle);

to determine the useable

4条回答
  •  忘掉有多难
    2021-01-06 03:20

    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.

提交回复
热议问题