android code sets the width and height

RelativeLayout.LayoutParams rlp = (RelativeLayout.LayoutParams) holder.service_text_info.getLayoutParams();
        rlp.width = mWidth;
        rlp.height = mWidth;
        rlp.setMargins(DubToolUtils.dip2px(mContext,15), DubToolUtils.dip2px(mContext,15),0,0);

 

Guess you like

Origin blog.csdn.net/dubo_csdn/article/details/94738464