0

i want to differentiate the list items by changing the Text style to bold for "ParentID is null" and "ParentID is not null" with normal Style. Please help me with the code to get the customizable listview items. Thanks in advance.

Avadhani Y
  • 7,566
  • 19
  • 63
  • 90

1 Answers1

1

here You have to cretae one custom adapter in which you have to define on row layout for list items and you can set different styles for each item here is good link for that How to create a custom ListView with "extends Activity"?

Community
  • 1
  • 1
bindal
  • 1,940
  • 1
  • 20
  • 29
  • first declare listview in your main layout file then create one custom layout file that declares a layout of single listitems.then create one custom adapter as in example use that custom layout file in that adapter and call that adapter from yout acticity – bindal Dec 01 '11 at 09:49