简体   繁体   中英

Child Divider Is Not Visible in ExpandableListView

I have the Following View in my XML. I am setting the childDivider to a color. But my child divider is not visible.

<ExpandableListView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:id="@+id/contacts_first_level_list_view"
            android:childDivider="@color/text_color_grey_directives"
            android:dividerHeight="@dimen/d1"/>

Please let me know if i have to do any thing other than this to see the divider only between Childs(No Divider between parents). Thanks.

I just ran in to this problem and finally found the answer. Check to see that isChildSelectable() is set to return true. (I know this is old but it may help someone.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM