Skip to content

Instantly share code, notes, and snippets.

@vbedegi
Created May 21, 2011 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vbedegi/984694 to your computer and use it in GitHub Desktop.
Save vbedegi/984694 to your computer and use it in GitHub Desktop.
SimpleCursorAdapter - Android
String[] columns = new String[]{"columnA", "columnB", "columnC"};
int[] widgets = new int[]{R.id.widgetA, R.id.widgetB, R.id.widgetC};
SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.list_item, cursor, columns, widgets);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment