I am trying to find a simple example of displaying data from an SQLite database in a layout.
I tried to look at the “Notebook” example but it only has one output column.
Is there an example out there with multiple output columns and, if possible, integer data in some of the columns?
I am trying to find a simple example of displaying data from an SQLite
Share
theblitz,
You may want to consider creating your own customer
Adapter. For my project I created a customCursorAdapter. The result was such:Here is my code for the custom CursorAdapter if you would like to use it as an example:
and the xml for the individual items:
Here is the code from the Main
Activity:I call this function to display the cursor using my custom adapter:
The XML for the main Activity: the top relative layout is for the action bar