0
在xml文件中我使用相对布局作为父.. 因为我使用Linerlayout作为子.. 如何设置线性布局的高度? 在此先感谢如何通过java代码设置linerlayout的高度
在xml文件中我使用相对布局作为父.. 因为我使用Linerlayout作为子.. 如何设置线性布局的高度? 在此先感谢如何通过java代码设置linerlayout的高度
试试这个代码将设置线性布局的高度。它会符合你的情况 父即RelativeLayout的..希望它会正常工作...... LinearLayout linearLayout = (LinearLayout) findViewById(R.id.linearLayout0); linearLayout .setMinimumHeight(minHeight);
谢谢你非常喜欢 – 2011-04-07 08:14:28
@ashok:我的祝福:) – Hussain 2011-04-07 08:20:45