Code example for ListView

Methods: setAdapter, setOnItemClickListener

0
 
		@Override 
		public void onSuccess(GCChuteCollection responseData) {
			adapter = new ChuteListAdapter(SearchChutesActivity.this,
					responseData);
			chutes.setAdapter(adapter);
			chutes.setOnItemClickListener(new ChuteClickListener());
		} 
 
		@Override 
		public void onHttpException(GCHttpRequestParameters params,
				Throwable exception) {
			Toast.makeText(getApplicationContext(), R.string.http_exception,
					Toast.LENGTH_SHORT).show();
 
		} 
 
		@Override 
		public void onHttpError(int responseCode, String statusMessage) {
			Toast.makeText(getApplicationContext(), R.string.server_issue,
					Toast.LENGTH_SHORT).show();