看到很多人都在找这个问题的解决方法,有些高手的回复又比较难懂.我找了很久,终于在国外的stackoverflow.com找到答案了.建议要控制这个Gridview里面item的高度的话,自己重写一个adapter.因为需要在里面的getview()方法里面加代码.
原帖:http://stackoverflow.com/questions/5690144/how-can-i-force-a-gridview-to-use-the-whole-screen-regardless-of-display-size

关键代码: 可以把你想要的高度传进去,替换掉mGv.getHeight()/ROW_NUMBER

01publicView getView(intposition, View convertView, ViewGroup parent) {
02convertView = LayoutInflater.from(context).inflate(R.layout.item, null);
03
04AbsListView.LayoutParams param = newAbsListView.LayoutParams(
05android.view.ViewGroup.LayoutParams.FILL_PARENT,
06mGv.getHeight()/ROW_NUMBER);
07convertView.setLayoutParams(param);
08
09returnconvertView;
10}

【转】

http://www.eoeandroid.com/thread-272744-1-1.html