Android - Accordion over ListView
Create a accordion on android is never an easy task. So, I have tried to develop such a component which may fulfill your requirement. This may not be the best way but one of the ways , for sure. First add the Listview on your activity_main.xml ,so your activity_main.xml become look like as follows <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" android:background="#bababa" > <ListView android:id="@+id/listView1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerVertical="true" ></ListView> </RelativeLayout> Second create a layout xml and give it the name &quo