aspose file tools
The moose likes Android and the fly likes how to remove ListView Activity Lines in Android Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply 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: 1365

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


[List of FAQs] | [Android FAQ] | [My Blog] | [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: 1365

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: 1365


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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to remove ListView Activity Lines in Android
 
Similar Threads
Multicolumn checked ListView
List application Sample
Google Admob Integration Errors
How to Refresh ListView in Android
regarding layout