动态设置布局控件的宽高

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

原文地址:https://www.cnblogs.com/liyanli-mu640065/p/9171949.html