20 按比例设置 子控件的宽度和高度
摘要:
1.得到当前屏幕的 分辨率Display display = this.getWindowManager().getDefaultDisplay(); int totalWidth = display.getWidth(); int totalHeight = display.getHeight();2.设置高度和宽度ImageView curView = (ImageView)layout.findViewById(R.id.imageView1); LayoutParams para = curView.getLayoutParams(); para.heigh... 阅读全文
posted @ 2013-06-09 22:37 肖磊 阅读(169) 评论(0) 推荐(0) 编辑