ListView Example

This tutorial shows how to display a String list in a ListView. Step 1: Create a new project with name ListViewExample and package name com.myexample.listview. Select File/New/New Project. Fill the forms and click “Finish” button. Step 2: Open res/layout/xml (or) main.xml and add following code. Here we add a ListView mainListview1. Step 3: Open app/src/main/java/package and open … Read more