在 ImageAdapter 中排除此行以停止加载该预设:
//imageBackground = ta.getResourceId(R.styleable.Gallery1_android_galleryItemBackground, 1);
此后图像可能会重叠,因此进入 main.xml 或任何用于样式设置的内容并将其添加到图库中,以在图库图像周围填充,例如透明边框:
android:spacing="10px"
现在 XML 的 Gallery 部分将显示为:
<Gallery
android:id="@+id/Gallery01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:spacing="10px">
</Gallery>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)