

Public Items(String itemRef, String item, String supplier, int latestStock, This file is just a work around file instead of making a whole SQLite database. Now we can move on to programming our Android ListView.Ĭreate a new class file with name items.java and edit it as below. This is how the final Android Listview will look like:

This file will work as template or layout resource file for our ListView.

Now create a new layout file named lst_items.xml and edit it as below. In your Android studio project open the activity_main.xml file and edit it as below:
