Below you find an application with a SQLite database and a ScrollView based table.
What the program can do:
- Read a database, 'Load' button.
- Edit, modify or delete date sets (single- or multi-selection), 'Edit' button.
- Edit and modify a single cell, 'Long_Click' on a cell in a selected row.
- Filter the database, 'Filter' button, Click filter or unfilter, LongClick definition of filter criterias.
- Sort a column ascending or descending, clickink onto the column header.
- Create a new database, 'New' button.
- Scroll the table verticaly with the standard Scrollview, and horizontaly on the blue line between the ScrollView and the toolbox (or with a SeekBar, hidden by default.
- Change the table setup, alignment, column width, text size, colors, etc.
What the program connot do:
- Share multiple tables.
I post it as a tutorial more to show what could be done, rather than a specific program in Share Your Creations.
Questions, constructive critics, comments, wishes and bug reports are welcome.
You can use the source code, or parts of it, for your own applications.
EDIT: 2012.07.05
Added a version using the ScrollView2D library.
EDIT: 2013.02.08
Amended error reported in post #27
Updated zip file SQLiteDB_2D_v_1_2.zip
EDIT: 2013.02.09
Amended error reported in post #30
Updated zip file SQLiteDB_2D_v_1_3.zip
EDIT: 2013.04.19
Eliminated error with Null values in a database reported in post #45.
Updated zip file SQLiteDB_2D_v_1_4.zip
EDIT: 2013.07.01
Eliminated some errors.
Removed most of the compiler warnings.
EDIT: 2014.02.09
Amended bug reported in post #57
Missing DBFilePath on btnLoad_Click
Best regards.
What the program can do:
- Read a database, 'Load' button.
- Edit, modify or delete date sets (single- or multi-selection), 'Edit' button.
- Edit and modify a single cell, 'Long_Click' on a cell in a selected row.
- Filter the database, 'Filter' button, Click filter or unfilter, LongClick definition of filter criterias.
- Sort a column ascending or descending, clickink onto the column header.
- Create a new database, 'New' button.
- Scroll the table verticaly with the standard Scrollview, and horizontaly on the blue line between the ScrollView and the toolbox (or with a SeekBar, hidden by default.
- Change the table setup, alignment, column width, text size, colors, etc.
What the program connot do:
- Share multiple tables.
I post it as a tutorial more to show what could be done, rather than a specific program in Share Your Creations.
Questions, constructive critics, comments, wishes and bug reports are welcome.
You can use the source code, or parts of it, for your own applications.
EDIT: 2012.07.05
Added a version using the ScrollView2D library.
EDIT: 2013.02.08
Amended error reported in post #27
Updated zip file SQLiteDB_2D_v_1_2.zip
EDIT: 2013.02.09
Amended error reported in post #30
Updated zip file SQLiteDB_2D_v_1_3.zip
EDIT: 2013.04.19
Eliminated error with Null values in a database reported in post #45.
Updated zip file SQLiteDB_2D_v_1_4.zip
EDIT: 2013.07.01
Eliminated some errors.
Removed most of the compiler warnings.
EDIT: 2014.02.09
Amended bug reported in post #57
Missing DBFilePath on btnLoad_Click
Best regards.
Attachments
-
SQLiteDB1.jpg48 KB · Views: 14,113
-
SQLiteDB2.jpg50.7 KB · Views: 2,701
-
SQLiteDB3.jpg34.4 KB · Views: 20,191
-
SQLiteDB4.jpg41.4 KB · Views: 2,451
-
SQLiteDB5.jpg27.4 KB · Views: 2,679
-
SQLiteDB6.jpg49.7 KB · Views: 9,211
-
SQLiteDB7.jpg49.4 KB · Views: 2,671
-
SQLiteDB_V1_1.zip26.2 KB · Views: 4,087
-
SQLiteDB_2D_V1_5.zip28.5 KB · Views: 3,511
Last edited: