Anyone know why the following code would produce no list items even if
there are 9 rows in the cursor?

        private boolean fillAndBind(int id,Cursor c,String[] columns,int[]
to)
        {
        startManagingCursor(c);

        ListView lv = (ListView)this.findViewById(id);

        // Now create a simple cursor adapter and set it to display
        lv.setAdapter(new SimpleCursorAdapter(this,
R.layout.person_row, c, columns, to));
        lv.startLayoutAnimation();


        return true;
        }


Here is the view in the layout to render each row

<TextView android:id="@+id/person_row_display" xmlns:android="http://
schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"/>


Any help would be appreciate. Right now I'm going to iterate through
the cursor and bind a string array to get around this...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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