【发布时间】:2016-04-14 12:46:43
【问题描述】:
我想根据屏幕尺寸使网格视图中的图像具有更大的尺寸,即使我使用将内容包装到图像视图并固定列数也留下空格,我通过以下方式下载图像毕加索 我的代码:
网格视图
<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>
图像视图
<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>
【问题讨论】:
标签: android xml gridview imageview picasso