Bonjour,

J'aimerais intéragir avec ma ListView seulement mon onItemClickListener ne passe pas, j'ai plusieurs erreurs..
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
public class AffichageClientActivity extends MainActivity implements onItemClickListener{
	clientBDD cliBDD= new clientBDD(this);
	ListView clientListe;
	client cli = new client("","","","","","","",0,0);
	private ArrayAdapter<String> ClientAdapter =null;
	protected void onCreate(Bundle saveInstanceBundle){
		super.onCreate(saveInstanceBundle);
		setContentView(R.layout.listingclient);
		clientListe = (ListView)findViewById(R.id.list);
 
 
		//récupération de la valeur de l'EditText
		Bundle objetbundle= this.getIntent().getExtras();
		String nomclient=objetbundle.getString("nomclient");
 
		clientListe = (ListView)findViewById(R.id.list);
		clientListe.setOnItemClickListener(new onItemClickListener (){
				public void OnItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3){
					//code une fois l'item cliqué
				}
				}
		ClientAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1);
		clientListe.setAdapter(ClientAdapter);
		cliBDD.open();
		cli = cliBDD.getClientwithNom(nomclient);
		if (cli != null){
		//affichage du ou des client(s)
 
		ClientAdapter.add(cli.getNom()+ "  " + cli.getPrenom());
		ClientAdapter.setNotifyOnChange(true);
 
 
		}
		else
		{
			Toast.makeText(this, "Ce client n'est pas enregistré dans la base, vérifier l'orthographe ou bien ajouter un nouveau client.", Toast.LENGTH_LONG).show();
		}
 
		cliBDD.close();
		}
 
		public String toString(){
			String MonStringClient = null;
			MonStringClient = cli.getNom() + cli.getPrenom();
			return MonStringClient;
		}
 
	}
J'ai ces erreurs :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
onItemClickListener cannot be resolved to a type
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
The method 
	 setOnItemClickListener(AdapterView.OnItemClickListener) in the type 
	 AdapterView<ListAdapter> is not applicable for the arguments (new 
	 onItemClickListener(){})
Savez vous pourquoi?
Merci d'avance!