When I run my app on screen 4.3 it works fine but when I run on 3.14 screen, images don’t show correctly one above the other in a big size.
Is there a way to show an image using percentage which depends on different screen sizes?
Here is the ImageView code:
@Override
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(200,200 ));
return imageView;
}
i found the solution of my answer
it’s close to @dmon answer
I created dimensions.xml in Values folder
and in imageadapter.java
thanks for everyone tried to help
best regards