Android 虚拟键的高度的问题

1.获取不含有虚拟键的高度

float heightWithOutKey = getWindowManager().getDefaultDisplay().getHeight();

2.获取含有虚拟键的高度

getResources().getDisplayMetrics().heightPixels

 

 

posted @ 2022-03-24 10:28  勤奋的小铁  阅读(65)  评论(0编辑  收藏  举报