Code example for ImageButton

Methods: getId

0
    /** 
     * Perform the button click action. 
     * @param v the clicked button. 
     */ 
    protected void onButtonClicked(ImageButton v) {
    	Log.i("MainViewGridAdapter", v.getId() + " clicked.");
    	Intent intent = null;
 
    	switch (v.getId()) {
    		case SCHLAG_LIST_IDX:
    			intent = new Intent(ctx, FlurstueckListView.class);
    			break; 
    		case SAAT_IDX:
    			intent = new Intent(ctx, AussaatDetailsView.class);
    			break; 
    		case BODEN_IDX:
    			break; 
    		case DUENGUNG_IDX:
    			break; 
    		case ERNTE_IDX:
    			break;