Binding extra info into a row

Put your problem here if it does not fit any of the other categories.

Binding extra info into a row

Postby ramgraph1 » Fri Feb 29, 2008 8:33 am

I am using the following code to display a list of scores and it is working fine, but I want to improve the formatting by adding a space between the username and score (or maybe even some text between them). How can I add stuff into the rows that is not from the database (I could do what I want by adding new fields to the database and using those, but that is hardly ideal...) Any ideas? Thanks.

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. String[] from = new String[] { GameDB.KEY_username, GameDB.KEY_score };
  3.         int[] to = new int[] {,};
  5.          SimpleCursorAdapter userfind =
  7.                  new SimpleCursorAdapter(this, R.layout.scores, c, from, to);
  9.          setListAdapter(userfind);
Parsed in 0.013 seconds, using GeSHi
Experienced Developer
Experienced Developer
Posts: 68
Joined: Wed Jan 09, 2008 10:03 pm


Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 5 guests