ExpandableListView - border around children

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

Thank you

Posts

  • CheesebaronCheesebaron DKInsider, University mod

    Yes.

  • 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.

    <ExpandableListView
                android:minWidth="25px"
                android:minHeight="25px"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                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.