ITeye博客

android在java中动态改变控件大小

羊咩咩 · 2013-11-16 20:19 · android · 移动开发 · Markdown

在java代码如下:

ImageButton exitbot =(ImageButton) findViewById(R.id.exit);
ViewGroup.LayoutParams exitbotn = (ViewGroup.LayoutParams)exitbot.getLayoutParams();
exitbotn.width = botwidth;
exitbotn.height = botheight;

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。