Android Code Snippet Storing And Retrieving Colors From a SQLite Database

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

upload_2015-2-19_8-12-17.png
 

Attachments

  • SqliteColorsMahares021915.zip
    28.3 KB · Views: 617
  • ScreenShotColorsListView.png
    ScreenShotColorsListView.png
    27.9 KB · Views: 491
Top