et mon code java qui essaye tant bien que mal de faire quelque chose ...
final TextView lieuINC = (TextView) findViewById(R.id.inc_lieux);
lieuINC.setText("x véhicules sur les lieux");
final ListView lINC = (ListView) findViewById(R.id.list_inc);
String[] values = new String[] { "VSAV, VSR, FPT, CCFM, VAR, VARI, FEV, PEVSD, VLCG" };
// Define a new Adapter
// First parameter - Context
// Second parameter - Layout for the row
// Third parameter - ID of the TextView to which the data is written
// Forth - the Array of data
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_1, android.R.id.text1, values);
// Assign adapter to ListView
lINC.setAdapter(adapter);
lieuINC.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
lINC.setVisibility(View.VISIBLE);
}
});