RelativeLayout.LayoutParams linearParams = (RelativeLayout.LayoutParams)rela_addnote_notetype.getLayoutParams(); linearParams.height = 44; rela_addnote_notetype.setLayoutParams(linearParams);
https://blog.csdn.net/chenguang79/article/details/37874793