GridView displays blank area in the footer in Lenovo Vibe K5 (API Level 22)

0

I have a GridView that displays 4 images that should fill the screen but this does not 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 I do not know how to solve.

Here's the problem:

Asyoucanseethereisablankinthefooterandit'stheoneIwanttoremove.

Hereisthecode:

activity_main.xml

<fragmentxmlns: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" />
    
asked by anonymous 25.10.2016 / 18:23

0 answers