0
I have a Gridview that displays 4 images that must fill the screen but that doesn’t happen. I have not added any padding or margin in the layout and have tried using the fillViewPort and fitsSystemWindow attributes. I think the problem is related to the physical buttons of the device that are not virtual in Lenovo K5 and maybe affect the layout, but do not know how to solve.
As you can see there is a blank space in the footer and it is he that I want to remove.
Here is the code:
activity_main.xml
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
class="guilherme.udacity.popularmovies.MainFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:layout="@layout/fragment_main" />
fragment_main.xml
<GridView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gridview_movies"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:horizontalSpacing="0dp"
android:numColumns="auto_fit"
android:stretchMode="columnWidth"
android:verticalSpacing="0dp" />
It is not a reason for negative, but for closing, just remembering...
– Wallace Maxters
Vlw did not know, I thought maybe it was integrated the English and Portuguese platforms
– Guilherme Matheus Correa