Linked Questions
19 questions linked to/from Android ListView Divider
411 votes
9 answers
261k views
How to change color of Android ListView separator line?
I want to change color of ListView separator line.
56 votes
3 answers
52k views
How to add padding to gradient <shape> in Android?
I have a shape with a gradient that I'm using as a divider between ListView items. I've defined it as follows: <?xml version="1.0" encoding="UTF-8"?> <shape xmlns:android="http://...
8 votes
3 answers
26k views
ListView dividers on top and bottom of the ListView Item
I am using Android Listview and and I want a 1px divider on both the side of the listview item means on the top and bottom of two different colours. But the problem is that I am not getting login for ...
9 votes
4 answers
9k views
ListView divider not showing in Android 5
I have a simple listview for which I have defined a custom drawable for the divider. I have defined the divider height to be 1dp. The listview is within a fragment. <shape android:shape="line"...
5 votes
2 answers
20k views
Custom style listdivider [duplicate]
I'm trying to style the default ListView list divider to have margins of whitespace on both sides. I already tried to set the margins of the entire ListView but that didn't create the desired result. ...
20 votes
1 answer
17k views
ListView divider not showing [duplicate]
I have a ListView with BaseAdapter. In XML, I specified item divider as red color with 10dip height. <ListView android:layout_width="fill_parent" android:layout_height="0px" ...
1 vote
2 answers
5k views
How to add border to the bottom of list item in listview
I have a list view and I want to add a bottom border to each list item so it acts as a separating line between all the cells. This is my list view right now. <LinearLayout xmlns:android="http://...
8 votes
1 answer
7k views
How to change the default divider color for all ListViews
I am trying to apply default styling for all the listViews from style.xml Please note at some places I am using nested listViews. In style.xml <style name="Theme.MyTheme" parent="Theme....
2 votes
1 answer
5k views
increase the spacing between items in a List view in android
I am generating a listview as follows: setListAdapter(new ArrayAdapter<String>(this, R.layout.row, fileListS)); in which "row" is the following xml file: <?xml version="1.0" encoding="utf-8"...
0 votes
1 answer
2k views
Change listViewDivider padding, color and height programmatically [duplicate]
for my app I want to change the divider of a listView. The goal is to set a solid padding and a User-definable height such as a User-definable color. Therefore I have set up a custom divider drawable ...
1 vote
1 answer
1k views
Android - adding views to layout
I have a linear layout for which i will add views to make it a list like view, (reason for not using an android list view is, i am using this layout inside scroll view of my sliding menu and came to ...
0 votes
2 answers
1k views
Drawable Divider in a Listview fills parent
I have this image: and I want to assign this image to the divider property of a listview. The problem is the image expand all the width, and when I execute this app in a device the image is two ...
0 votes
1 answer
722 views
Separator for a two column List view not working in Android
I want to separate data of two columns in a List View by a line or any block, as shown here I tried following solutions, unfortunately they did not work Solution 1 Solution 2 Please check code for ...
0 votes
1 answer
777 views
How to give background or space between list view row and avoid click event in android
How to give space or background or divider between list view for one row in android.I have implemented onitem click in list view.if user click background or space or divider the how to avoid click ...
0 votes
1 answer
428 views
adding separators in a listView
I'm trying to add separators between my list view items, I have sorted them into date order and added list entries where the separator needs to go but as soon as it gets to a seperator it stops, no ...