I have a simple gridview:

<GridView
    android:id="@+id/gridview"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:horizontalSpacing="0dp"
    android:verticalSpacing="0dp"
    android:numColumns="auto_fit"
    android:columnWidth="120dp">
</GridView>

I need to make it fit images, that might be little bit different in dimensions. I can crop them using ImageView's scaleType set to "centerCrop". I need to remove these spaces:

enter image description here

enter image description here

Related posts

Recent Viewed