Quiero hacer que las imágenes en la vista de cuadrícula seancon un tamaño más grande de acuerdo con el tamaño de la pantalla, incluso cuando uso el ajuste de contenido para la vista de imagen y hago el número de columnas fijas, también deja espacios, descargo imágenes de Picasso mi código:
vista en cuadrícula
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<GridView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gridview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:verticalSpacing="0dp"
android:horizontalSpacing="0dp"
android:numColumns="2">
</GridView>
</FrameLayout>
vista de imagen
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/posterImage"
android:layout_height="wrap_content"
android:layout_width="wrap_content">
</ImageView>
Respuestas
0 para la respuesta № 1Intenta agregar tu layout_height
y layout_width
parámetro manualmente en lugar de
wrap_content
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/posterImage"
android:layout_height="370dp"
android:layout_width="370dp">
</ImageView>
Se recomienda colocar márgenes dp en el archivo dimen.xml.
también en gridView, deberías cambiar match_parent
en lugar de fill_parent
;