i am making gallery but i am stuck with one problem here is a view of one device which is normal screen 320x480 link and device 2 with have higher screen resolution 720x1280 link i want to high resolution device have same view as normal screen. is there any option to make LayoutParams if is screen x-large to be like new imageView.setLayoutParams(GridView.LayoutParams(200, 200));
or more? how to do that?
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(100, 100));
return imageView;
}