Android Code Snippet Storing And Retrieving Colors From a SQLite Database


Well Known Member
Licensed User
Name: Colors from a SQLite table:

Description: The attached project creates a database that imports a text file into a table with only 2 columns: COLOR_NAME and COLOR_RGB to a table. The color names are then displayed on a listview. When a color is clicked, an edit text and panel inherit the color clicked. The color name, color integer and RGB are also displayed on these views.
BONUS: I included an illustration of the most recent and excellent ViewTagger library from DonManfred. The ViewTagger inherits the color of the item clicked. If you do not use the library, simply comment the 3 lines that start with ‘vt’.

Dependencies: SQL, Viewtagger
Tags: SQLite, Create Table, Insert Into, Listview, Viewtagger