Expansion panels contain creation flows and allow lightweight editing of an element.
Add following line of code to your module(app) level gradle file
implementation 'com.robertlevonyan.view:MaterialExpansionPanel:1.0.8'
<dependency>
<groupId>com.robertlevonyan.view</groupId>
<artifactId>MaterialExpansionPanel</artifactId>
<version>1.0.8</version>
<type>pom</type>
</dependency>
<com.robertlevonyan.views.expandable.Expandable
android:id="@+id/expandable"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<include
android:id="@+id/header"
layout="@layout/header_view" />
<include
android:id="@+id/content"
layout="@layout/content_view" />
</com.robertlevonyan.views.expandable.Expandable>
Material Expansion Panel in action