android 动态设置Framelayout,view,imageView,Layout高度
直接:测试可以
Framelayout.getLayoutParams().width=600;
Framelayout.getLayoutParams().height=400;
如:view,imageView设置高态方法一样;
经使用,但在有时候不起作用,以下方法解决:
如:
LinearLayout.LayoutParams params = new
LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT
,1122);
lyttest.setLayoutParams(params);