Code example for GridView

Methods: setAdaptersetSelection, invalidate

0
					if (isMore) {
						menuGrid.setAdapter(getMenuAdapter(menu_name_array2,
								menu_image_array2));
						isMore = false;
					} else {// ��ҳ 
						menuGrid.setAdapter(getMenuAdapter(menu_name_array,
								menu_image_array));
						isMore = true;
					} 
					menuGrid.invalidate();// ����menu
					menuGrid.setSelection(ITEM_MORE);
					break; 
				} 
				 
				 
			} 
		}); 
	} 
	@Override 
	public boolean onCreateOptionsMenu(Menu menu) {
		menu.add("menu");// ���봴��һ��