设置GridView中Item的大小


public class MySimpleAdapter extends SimpleAdapter {
@Override
public View getView(int position, View convertView, ViewGroup parent) {
     View item = super.getView(position, convertView, parent);
     item.setLayoutParams(new GridView.LayoutParams(80, 80));
     return item;
}

你可能感兴趣的:(android,Activity,GridView)