package com.example.liste_custom;

import java.util.ArrayList;

import com.example.menu.R;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.AdapterView.OnItemLongClickListener;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;

public class ListViewActivity  	extends BaseMenuActivity 
								implements OnItemClickListener{
	

	private  ArrayList<Individu> liste;
	private ApplicationDataShare app;
	
	@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_list_view);
        
        app=ApplicationDataShare.getInstance();
        liste=app.getListeIndividu();
        
        
    //COMPLETE SET-UP LISTVIEW HERE
        
    }
    

@Override
public void onItemClick(AdapterView<?> arg0, View arg1, int position, long id) {
	// TODO Auto-generated method stub
	app.setIndividu(liste.get(position));
	Intent intent1=new Intent(this, ResultIMCActivity.class);
    startActivity(intent1);
}


}
