Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

BaseAdapter: getView() problem  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

I made a listview that has three textviews and a checkbox and put it into a BaseAdapter. What it has to do is if an item is at the 'unread' status, then make its textviews BOLD. However, I encountered two problems.

1. the top item is always BOLD no matter it is read or unread.
2. If I do scrolling, then items reloaded by scrolling start to be bold

I researched about it but couldn't find any good things for me. If anyone has an idea, would you please help me? Below is my getView().
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!