How to remove specific space between parent and child in an ExpandableListView

后端 未结 10 2181
太阳男子
太阳男子 2021-02-20 09:10

Can you help me identify why there is a space between the group and the child? In my case I want spaces between all groups and the child should be right below the group with no

10条回答
  •  感动是毒
    2021-02-20 09:54

    Use negative margin for child view in view_departure_details.Something like this:

    
    

    I know some people consider it a bad practice to use negative margin but right it seems to be the easiest way.

    Other way(the time-consuming way) is to implement you own expandable listview so that you have more control on how things are drawn.

提交回复
热议问题