What is “android.R.layout.simple_list_item_1”?

I’ve started learning Android development and am following a todolist example from a book:

// 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);

I can’t understand exactly this code especially this line:

android.R.layout.simple_list_item_1

7 Answers
7

Leave a Comment