繁体   English   中英

子分隔线在ExpandableListView中不可见

[英]Child Divider Is Not Visible in ExpandableListView

我的XML中有以下视图。 我将childDivider设置为一种颜色。 但是我的孩子分隔线不可见。

<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"/>

请让我知道是否需要做其他事情才能看到孩子之间的分隔线(父母之间没有分隔线)。 谢谢。

我遇到了这个问题,终于找到了答案。 检查是否将isChildSelectable()设置为返回true。 (我知道这很老了,但可能会对某人有所帮助。)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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