I am new to android development and I am developing an app where the app downloads pictures from server and show them in a gridView. But some extra spaces are coming up when the app is run on a bigger screen phone. Here are some screenshots. How do I solve this ? I have the model of each item with a fixed height and width of 110dp
My image model :
<?xml version="1.0" encoding="utf-8"?>
<ImageView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="110dp"
android:layout_height="110dp"
app:srcCompat="@drawable/post2"
android:id="@+id/imageView2"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:layout_margin="1.5dp" />
My Recycler View :
<android.support.v7.widget.RecyclerView
android:id="@+id/gallerygrid"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="4dp"
android:numColumns="auto_fit"
android:stretchMode="columnWidth"
android:visibility="visible"
android:layout_gravity="center">
</android.support.v7.widget.RecyclerView>