Supprimer un item d'une listview
Bonjour,
j'ai une listview qui est initialisée comme ceci (onCreate) :
Code:
1 2 3 4 5 6 7
| lMode = (ListView) findViewById(R.id.list1);
lMode.setAdapter(new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_single_choice, arrayType));
lMode.setChoiceMode(ListView.CHOICE_MODE_SINGLE); |
La list view set initialisée par un tableau de String (initArray)
Code:
1 2 3 4 5 6
| public void initArray() {
arrayType = new String[3];
arrayType[0] = getString(R.string.btnQueryVente);
arrayType[1] = getString(R.string.btnQueryLocation);
arrayType[2] = getString(R.string.btnQueryInvestir);
} |
je cherche a supprimer un item de la listview pour que je puisse choisir quel item choisir a afficher, en tout cas le tableau devra toujours être de 3 éléments. je cherche juste a masquer un des éléments de la listview.
Merci d'avance