Android Code Snippet Storing And Retrieving Colors From a SQLite Database

Discussion in 'Code Snippets' started by Mahares, Feb 19, 2015.

  1. Mahares

    Mahares 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


    Attached Files:

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice