Code example for GridView

Methods: getSelectedItemId

0
	/** 
	 * @return the cursor row ID of the currently selected grid item. 
	 */ 
	public long getSelectedItemId() { 
		ensureGrid(); 
		return gridView.getSelectedItemId();
	} 
	 
	public GridView getGridView() {
		ensureGrid(); 
		return gridView;
	} 
	 
	/** 
	 * The default content for a ListFragment has a TextView that can be shown when the list is empty. If you would like 
	 * to have it shown, call this method to supply the text it should use. 
	 *  
	 * @param text 
	 */ 
	public void setEmptyText(CharSequence text) {
		ensureGrid();