I have an array that successfully places 15 images into a GridView. However the Images are all very small when shown in the grid. How do I go about changing the size of them?
I have tried to change the GridView.LayoutParams to (100, 100) but there did not appear to be a change.
public View getView(int position, View convertView, ViewGroup parent) {
ImageView imageView = new ImageView(mContext);
imageView.setImageResource(mThumbIds[position]);
imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
imageView.setLayoutParams(new GridView.LayoutParams(85, 85));
return imageView;
You could try to make an adjustment based on the pixel density of a device o an emulator