GeeCON Prague 2014*
The moose likes Android and the fly likes how to remove ListView Activity Lines in Android Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Mobile » Android
Bookmark "how to remove ListView Activity Lines in Android" Watch "how to remove ListView Activity Lines in Android" New topic
Author

how to remove ListView Activity Lines in Android

Sreenu Vengala
Greenhorn

Joined: Oct 26, 2009
Posts: 18
Hi..

Please help on how to remove ListView Activity lines in Android

Thanks
Srini
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

It is difficult to understand what you are trying here. Do you have any code that you can post?


[List of FAQs] | [Android FAQ] | [Samuh Varta]
Sreenu Vengala
Greenhorn

Joined: Oct 26, 2009
Posts: 18
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


[Thumbnail for listview.jpg]

Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

I think, you'd have to edit the code for ListActivity to remove the line separators...
Sreenu Vengala
Greenhorn

Joined: Oct 26, 2009
Posts: 18
getListView().setDivider( null );
getListView().setDividerHeight(0);

is the solution.

Srini
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1


Found them in the documentation:

android:divider: Drawable or color to draw between list items.
android:dividerHeight: Height of the divider.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to remove ListView Activity Lines in Android