The HelloGallery example shows how to add the default gray highlight in step 5 using a attrs.xmlfile. If you do not want a border, you can skip this step.
ImageAdapter, . , , :
public ImageAdapter(Context c) {
mContext = c;
TypedArray a = obtainStyledAttributes(R.styleable.HelloGallery);
a.recycle();
}
, getView i.setBackgroundResource(mGalleryItemBackground);, .
, .