Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to remove ListView Activity Lines in Android

 
Sreenu Vengala
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..

Please help on how to remove ListView Activity lines in Android

Thanks
Srini
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is difficult to understand what you are trying here. Do you have any code that you can post?
 
Sreenu Vengala
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

I dont have any code. I need to remove ListView activity component lines.

please find the attachment, I want to remove lines between the text.

and listview is not refreshed when I add new item into ArrayAdapter.


Thanks
Srini
listview.jpg
[Thumbnail for listview.jpg]
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think, you'd have to edit the code for ListActivity to remove the line separators...
 
Sreenu Vengala
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getListView().setDivider( null );
getListView().setDividerHeight(0);

is the solution.

Srini
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Found them in the documentation:

android:divider: Drawable or color to draw between list items.
android:dividerHeight: Height of the divider.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic