Code example for GridView

Methods: invalidateViews

0
	ColorPickerDialogFragment mFragment = new ColorPickerDialogFragment();
 
	@Override 
	public void onColorSelected(final int color) {
		mCustomizedColor = color;
		mColorsGrid.invalidateViews();
		finishSelecting(color);
	} 
 
	@Override 
	public void onItemClick(final AdapterView<?> adapter, final View view, final int position, final long id) {
		if (position == adapter.getCount() - 1) {
			showDialog(); 
		} else { 
			finishSelecting(mColors.get(position));
		} 
 
	} 
 
	@Override 
	protected void onCreate(final Bundle savedInstanceState) {