【发布时间】:2011-10-26 13:13:09
【问题描述】:
我有一个GridView,它连续显示 2 张图像。我有一个 SGS 和 Galaxy 5 来测试这个应用程序。不幸的是,它不能很好地扩展。我更改 XML 中的值属性以填充 SGS 的屏幕,当我在 Galaxy 5 中进行测试时,它很糟糕,非常糟糕。我不知道该怎么办。
请尝试帮助我,GridView 是我启动其他活动的主要布局。
XML:
<?xml version="1.0" encoding="utf-8"?>
<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:columnWidth="90dp"
android:numColumns="2"
android:verticalSpacing="20dp"
android:horizontalSpacing="20dp"
android:stretchMode="columnWidth"
android:gravity="center"
android:background="@drawable/background3"
/>
【问题讨论】:
标签: android gridview imageview scale