Android 虚拟键的高度的问题
1.获取不含有虚拟键的高度
float heightWithOutKey = getWindowManager().getDefaultDisplay().getHeight();
2.获取含有虚拟键的高度
getResources().getDisplayMetrics().heightPixels
float heightWithOutKey = getWindowManager().getDefaultDisplay().getHeight();
getResources().getDisplayMetrics().heightPixels