view.setLayoutParams(new GridView.LayoutParams(100, 100)); 如果父布局为Gridview 要用Gridview 转载于:https://www.cnblogs.com/sode/archive/2011/09/16/2178305.html