Code example for GridView

Methods: invalidateViews

0
		vowelSoundTv.setText(values[1]);
		wordIs.setImageResource(vowelImg[position]);
		wordTv.setText(word[position]);
		adapter.setVowel(values[0]);
		adapter.setVowelSound(values[1].replaceFirst(" \\(.*\\)", ""));
		gridview.invalidateViews();
	} 
 
	/** 
	 * ViewFactory method to create ImageView for ImageSwitcher. 
	 */ 
	public View makeView() {
		ImageView iv = new ImageView(this);
		iv.setScaleType(ScaleType.CENTER);
		return iv;
	} 
 
	/** 
	 * Save the position of current vowel in preference. 
	 */ 
	@Override