2019-07-01

作者: 怪咖小青年_56e8 | 来源:发表于2019-07-01 15:23 被阅读0次

    屏幕适配,底部按钮显示一半

    //小米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));

    }

    相关文章

      网友评论

        本文标题:2019-07-01

        本文链接:https://www.haomeiwen.com/subject/nfggcctx.html