Questions tagged [divider]

393 questions
26
votes
2 answers

Android GridView draw dividers

I'd like to know the simplest way to draw dividers between items (currently textviews) within a GridView. The only way I can think of is to draw borders around those textviews so when combined, they look like continuous horizontal and vertical…
Eric Chen
  • 3,562
  • 7
  • 39
  • 58
23
votes
7 answers

How to add a Vertical Divider between Widget on Column in Flutter?

Good day. I've surfed on this website about how to add a Vertical Divider between Widget on Column in Flutter? but I got nothing. here what I want I already make the horizontal divider. but when I try to make a vertical divider that separating…
Roman Traversine
  • 868
  • 4
  • 12
  • 22
22
votes
4 answers

NavigationView: how to insert divider without subgroup?

How I can put a divider without title Subgroup in the new NavigationView?
21
votes
9 answers

ExpandableListView - How to set divider only between parent elements

I want to put divider only between parent elements. When i set android:divider="@drawable/divider" android creates divider between parent elements, but creates divider between child elements too. When i add android:childDivider="@color/transparent"…
Plamen Nikolov
  • 4,177
  • 3
  • 23
  • 24
21
votes
2 answers

Android ListView Default Divider Styles / Attributes

I have a LinearLayout view that I am trying to add a divider to so that it looks exactly the same as the default ListView control. I am trying to replicate the edit contact within the default Android (Nexus S 2.3.3) Contacts app and I believe a…
Luke
  • 6,195
  • 11
  • 57
  • 85
20
votes
4 answers

How to set width of ListView divider?

How can I set the width of my custom ListView divider, in order to have it smaller than my row width?
jul
  • 36,404
  • 64
  • 191
  • 318
19
votes
3 answers

Black Line Under Some ListView Items

Interesting problem I'm having with a ListView. It's using a standard ArrayAdapter, with a custom XML layout for the items within. Simple XML:
Kevin Coppock
  • 133,643
  • 45
  • 263
  • 274
19
votes
5 answers

Top and bottom dividers not showing in Android listview

The way I understand it, the divider defined for a listview should appear at the top and bottom of the list too, i.e. above the first item and under the last item. For some reason they don't appear in my listview:
InterRaptor
  • 301
  • 1
  • 2
  • 4
18
votes
4 answers

Customize divider / separator in dropdown of an AutocompleteTextview

I've seen this question asked some other times on the site, but no one couldn't get any answer. Is there any way to customize the appearance of the divider in the dropdown showing when using an AutocompleteTextview in android? It's pretty easy for a…
tchoum
  • 312
  • 1
  • 2
  • 10
18
votes
15 answers

Styling titleDivider in Dialog

I am wondering how it is possible to get rid of (or change color) titleDivider in Dialog. It is a blue line below dialog title shown on honeycomb+ devices. I guess this is relevant piece of layout from SDK, but since there is no style attribute I…
Andraz
  • 709
  • 2
  • 7
  • 16
17
votes
2 answers

Android. Hide certain listview separator

How I can hide or delete certain listview separator? Of course I can hide all dividers getListView().setDivider( null ); getListView().setDividerHeight(0); but I need hide one or two dividers in my listview. for example by position. I am using…
Georgy Gobozov
  • 13,633
  • 8
  • 72
  • 78
17
votes
0 answers

LinearLayout: showDividers="middle" not working on RTL layout direction

So I have this LinearLayout where I use dividers to add some spacing between the items:
gonçalo
  • 171
  • 1
  • 4
17
votes
5 answers

how to remove divider between items of Recyclerview in android

i want to remove divider (space) between items of RecyclerView So try to set background of item view and RecyclerView to White,but it doesn't works how to fix it ? Item View XML :
Hossein Kurd
  • 3,184
  • 3
  • 41
  • 71
15
votes
4 answers

Hiding ListView Header / Hiding Single Divider in a List

I found this Hide footer view in ListView?. As Yoni poited out correctly, you can hide a header in a ListView by wrapping it into a FrameLayout and setVisibility() of the inner View to View.GONE. This works almost perfect for me, BUT: As the…
M.E.
  • 536
  • 2
  • 9
  • 19
15
votes
5 answers

how to hide the divider between preferences in fragment

I want to hide the divider between preferences in fragment. The code is below: 1.SettingsActivity.java public class SettingsActivity extends PreferenceActivity { super.onCreate(savedInstanceState); SettingsFragment settingsFragement = new…
soildong
  • 151
  • 1
  • 4
1
2
3
26 27