android 动态代码添加布局 设置布局无效
imageViewimag=newimageView(this);FrameLayout.LayoutParamsimage_params=newFrameLayout....
imageView imag=new imageView(this);
FrameLayout.LayoutParams image_params = new FrameLayout.LayoutParams(
LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
imageView.setLayoutParams(image_params); 展开
FrameLayout.LayoutParams image_params = new FrameLayout.LayoutParams(
LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
imageView.setLayoutParams(image_params); 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |