Gallery:android:galleryItemBackground 什么效果
源码下载地址:http://download.csdn.net/detail/flyingsir_zw/9658434 设置 android:galleryItemBackground 后的效果 不设置的效果如下: 设置 android:galleryItemBackground 的方法如下: 1.项目目录res/values/attrs.xml <?xml version="1.0" encoding="utf-8"?> <resources> <declare-styleable name="HelloGallery"> <attr name="android:galleryItemBackground" /> </declare-styleable> </resources> 2.Gallery 自定义适配器中 构造方法中初始化 引用即可如下代码 public class MygalleryAdapter extends BaseAdapter { private Context mContext; pri...