Я начал изучать Android развития, и я после ToDoList пример из книги:Что такое "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);
Я не могу точно понять этот код особенно строку:
android.R.layout.simple_list_item_1
Но почему это параметр? Я просто хотел обновить свой список со своим массивом, и один из ответов показал это. Я не уверен, зачем мне это ... Вот мой вопрос. Благодаря! http://stackoverflow.com/questions/35098789/how-to-update-the-listview-according-to-arraylist/35099000?noredirect=1#comment57929962_35099000 –