我使用可扩展列表视图。我想在父母之间展示空间,但孩子仍然相同。 我使用可扩展列表视图
<ExpandableListView
android:id="@+id/listviewExpandAble"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginBottom="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
android:dividerHeight="10dp"
app:layout_constraintTop_toTopOf="parent"></ExpandableListView>
答案 0 :(得分:0)
Try this code:-
<ExpandableListView
android:id="@+id/eventplanning_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:childDivider="@color/child_divider_color"
android:clipChildren="true"
android:clipToPadding="true"
android:divider="@color/child_divider_color"
android:dividerHeight="0.5dp"
android:groupIndicator="@null"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:scrollIndicators="none"
android:scrollbars="none"
android:transitionGroup="true"/>