Linked Questions

411 votes
9 answers
261k views

I want to change color of ListView separator line.
UMAR-MOBITSOLUTIONS's user avatar
56 votes
3 answers
52k views

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://...
emmby's user avatar
  • 101k
8 votes
3 answers
26k views

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 ...
Nikhil Agrawal's user avatar
9 votes
4 answers
9k views

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"...
sr09's user avatar
  • 720
5 votes
2 answers
20k views

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. ...
Bart's user avatar
  • 769
20 votes
1 answer
17k views

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" ...
Kai's user avatar
  • 3,885
1 vote
2 answers
5k views

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://...
Anthony's user avatar
  • 36.4k
8 votes
1 answer
7k views

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....
Siddharth Menon's user avatar
2 votes
1 answer
5k views

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"...
TJ1's user avatar
  • 8,690
0 votes
1 answer
2k views

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 ...
chris115379's user avatar
1 vote
1 answer
1k views

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 ...
suresh cheemalamudi's user avatar
0 votes
2 answers
1k views

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 ...
beni's user avatar
  • 3,039
0 votes
1 answer
722 views

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 ...
Sudarshan's user avatar
  • 18.6k
0 votes
1 answer
777 views

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 ...
user386430's user avatar
  • 4,987
0 votes
1 answer
428 views

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 ...
Jack's user avatar
  • 397

15 30 50 per page