J'ai commencé à apprendre le développement Android et suis un exemple todolist suit d'un livre:Qu'est-ce que "android.R.layout.simple_list_item_1"?
// Create the array list of to do items
final ArrayList<String> todoItems = new ArrayList<String>();
// Create the array adapter to bind the array to the listView
final ArrayAdapter<String> aa;
aa = new ArrayAdapter<String>( this,
android.R.layout.simple_list_item_1,
todoItems
);
myListView.setAdapter(aa);
Je ne peux pas comprendre exactement ce code en particulier cette ligne:
android.R.layout.simple_list_item_1
Mais pourquoi est-ce un paramètre? Je voulais juste mettre à jour ma listview avec mon tableau, et l'une des réponses l'a montré. Je ne sais pas pourquoi j'ai besoin de ça ... Voici ma question. Merci! http://stackoverflow.com/questions/35098789/how-to-update-the-listview-accord-to-arraylist/35099000?noredirect=1#comment57929962_35099000 –