I want to overload getView similar to the Fancy-List posting I have
seen.
However, my data source is a Sqlite database as opposed to an array
of strings. The examples I have seen show you how to create a custom
Adapter that extends ArrayAdapter<String>...

How would I do this using a the database results like this...
note... I commented out the "array version of it"...
myJobsListRowAdapter ....

        // Create an array to specify the fields we want to display in
the list (only TITLE)
        String[] titleField = new String[]
{cybiDBAdapter.KEY_TITLE,cybiDBAdapter.KEY_DESCRIPTION};

        // and an array of the fields we want to bind those fields to
(in this case just text1)
        int[] to = new int[]{R.id.row,R.id.count};

        SimpleCursorAdapter notes =
            new SimpleCursorAdapter(this, R.layout.jobs_row,
mStatsCursor, titleField, to);
       // myJobsListRowAdapter items2 = new myJobsListRowAdapter
(this);//,value);
       //       setListAdapter(items2);
        setListAdapter(notes);

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to