Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

ExpandableListView - border around children

I would like to ask if I can set border around children (no around one child) or delete space between children.

Thank you


  • CheesebaronCheesebaron DKInsider, University mod


  • cendulkacendulka USMember

    Could you say how please? I found only setChildDivider, but it dont work

  • CheesebaronCheesebaron DKInsider, University mod

    Be more specific what kind of border you want. A drawing or a screenshot would help.

  • cendulkacendulka USMember

    I used layout with padding in method getChildView, but I have here white space between children. I would like this space remove or border only right and left. I dont know how explain.

  • CheesebaronCheesebaron DKInsider, University mod

    Take a screenshot and show what you want removed.

  • VamshiKrishnaVamshiKrishna USMember
    edited August 2014

    @cendulka‌ Below is my Expandable List View. Look at Divider Attribute. I think that is what you are looking for. This is removing the Spacing between List Items.

                android:divider="@null" />
  • cendulkacendulka USMember

    Thank you, but I cant use xml. Do you know how do in code?

  • harshal.4347harshal.4347 USMember

    I am new to xamarin forms.I would like to know how can i set a border to listView so that it acts as divider between multiple list items?
    I am using xaml to create my UI.

Sign In or Register to comment.