Gridview displays blank area at footer in Lenovo Vibe K5 (API Level 22)

Asked

Viewed 40 times

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.

Here’s the problem: inserir a descrição da imagem aqui

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" />
  • 2

    It is not a reason for negative, but for closing, just remembering...

  • Vlw did not know, I thought maybe it was integrated the English and Portuguese platforms

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.