Code example for ColorDrawable

0
public class CustomGridView extends GridView {
 
	public CustomGridView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		// TODO Auto-generated constructor stub 
		this.setSelector(new ColorDrawable(Color.TRANSPARENT));
	} 
 
	public CustomGridView(Context context, AttributeSet attrs) {
		super(context, attrs);
		// TODO Auto-generated constructor stub 
		this.setSelector(new ColorDrawable(Color.TRANSPARENT));
	} 
 
	public CustomGridView(Context context) {
		super(context);
		// TODO Auto-generated constructor stub 
		this.setSelector(new ColorDrawable(Color.TRANSPARENT));
	} 
 
Contextual code suggestions in your IDE  Get Codota for Java