Code example for ListFragment

Methods: getActivity, getView, onActivityCreated

0
	} 
	 
	@Override 
	public void onActivityCreated(Bundle savedInstanceState) {
		// TODO Auto-generated method stub 
		super.onActivityCreated(savedInstanceState);
		 display(); 
	} 
	 
	private void display() 
	{ 
		final 
		Context context = getActivity().getApplicationContext();
		lv = (ListView) getView().findViewById(android.R.id.list);
	     lv.setOnItemClickListener(new OnItemClickListener() {
 
				public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
						long arg3) {
					HashMap<String, String> o = (HashMap<String, String>) lv.getItemAtPosition(arg2);	        		
	        		//Toast.makeText(Actu.this, "L'item '" + o.get("idfix").toString() + "' was clicked.", Toast.LENGTH_SHORT).show(); 
	        		Log.e("log_actuclick", "j'ai cliqué ça marche");