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 };
  2.  
  3.         int[] to = new int[] { R.id.text1, R.id.text2};
  4.  
  5.          SimpleCursorAdapter userfind =
  6.  
  7.                  new SimpleCursorAdapter(this, R.layout.scores, c, from, to);
  8.  
  9.          setListAdapter(userfind);
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
ramgraph1
Experienced Developer
Experienced Developer
 
Posts: 68
Joined: Wed Jan 09, 2008 10:03 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Exabot [Bot], Majestic-12 [Bot], Yahoo [Bot] and 20 guests