Android 动态设置 layout_centerInParent

        RelativeLayout.LayoutParams rp = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
        rp.addRule(RelativeLayout.CENTER_IN_PARENT);

  记录一下

posted @ 2016-11-24 11:38  IWing  阅读(4455)  评论(0编辑  收藏  举报