Here's my issue: I have a database and it is full of episodes of a tv show. One column denotes the episode number. I want to display the episodes in a list like this:
- Episode 1
- Episode 2
- Episode 3
- etc.
I'm using my own adapter class that extends SimpleCursorAdapter to do this...
Since I had formatting errors I am using Android.R.layout.simple_list_item_1
and Android.R.id.text1
Basically the only reason I have a custom adapter is so I can do something like this:
textView.setText("Episode " + cursor.getString("column_for_episode_number");
The problem is, I get a list that looks like this:
- Episode
- 1
- Episode
- 2
- Episode
- 3
When I try something like this(which worked in a different portion of my code):
String text = "Episode " + cursor.getString("blah");
text = text.replaceAll("\\n","");
I get the exact same list output :(
Why don't I use create a custom view with two textboxes next to each other? It is hard for me to get that to look pretty :/
text
? I'm suspecting that your cursor is not returning what you expect. – Alluring