Accordion effect over Layouts

Accordion effect over Layouts Most of example for the accordion effect as created using Expandable List view so the working task is begin difficult to do Lets create a accordion effect over Linear Layout Create a simple android project create a sample XML data as follows <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" tools:context=".MainActivity" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:padding="15dp" > <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:grav...