I am having the following ExpandableListView:
<ExpandableListView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/listView"
android:groupIndicator="@android:color/transparent"
android:background="@color/app_background"
android:scrollingCache="false"
android:choiceMode="none"
android:divider="@color/gray_dark"
android:dividerHeight="2dp"
android:childDivider="@color/gray_dark"
android:cacheColorHint="@color/app_background"/>
The problem that I have is that the expandable list view is not drawing the dividers or at least are not visible.. I am adding a custom view as Group view and also custom list items in my expandable adapter. Could this be a problem?
Does anyone know what can I do to enable the dividers for the list child?
Thank you in advance.
View
s to the list through anAdapter
or through something like((ViewGroup) findViewById(R.id.listView)).addView(child)
? If the latter, it won't work as you expect. – Turnbull