屏幕适配,底部按钮显示一半
//小米9适配问题,小米8,华为nova4,荣耀20
if (SystemUtil.getSystemModel().equals("MI 9")|| SystemUtil.getSystemModel().equals("MI 8") || SystemUtil.getSystemModel().equals("Nova 4")|| SystemUtil.getSystemModel().equals("YAL-AL00")) {
LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams)drawerlayout.getLayoutParams();
layoutParams.setMargins(0,0,0,CommonUtil.dip2px(this,80));
}
网友评论