In LinearLayout of Horizontal orientation, embedd the first ListView and assign a layout width of 50dp to 100dp(in bretween),Embedd the second ListView to the right of first ListView in the LinearLayout and assign width wrap_content
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<ListView
android:layout_width="84dp"
android:layout_height="wrap_content"
android:id="@+id/listView"
android:layout_gravity="center_vertical" />
<ListView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/listView2"
android:layout_gravity="center_vertical"
android:layout_weight="1" />
Now design ListItems of both the lists as per your requirements.
After that relate the itemclickListener of your first ListView to the Second one like this :
ListView lv1,lv2;
lv1.setAdapter(new FirstListAdapter);
lv1.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
if(position==0){
lv2.setAdapter(new AdapterA);
}else if(position==1){
lv2.setAdapter(new AdapteB);
}
}
});
Based on the selection of first ListView Item you have to set the adapter of second ListView adapter.
This is the basic idea rest do make sure that you clear listviews on time.