I have two LinearLayouts in my application side by side. In 1st LinearLayout (left side),I have some name lists.I want to implement the connection or relationship between them in such a way that when I clicked on one of the name list items, a text message or some design will display into the 2nd Linear Layout (right side). I have implemented OnClickListener with Toast but I don't have an idea to display a text message or some design into the 2nd Linear Layout. Thanks in advance for any help!
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:id="@+id/relLayoutMiddle" android:orientation="horizontal"
android:layout_below="@+id/relLayoutTopBar"
android:layout_above="@+id/relLayoutBottomBar">
<!-- Items List-->
<LinearLayout
android:orientation="vertical"
android:layout_width="80dp"
android:layout_height="fill_parent"
android:layout_marginRight="5dp"
android:background="@drawable/border_design">
<ListView
android:id="@+id/item_List" android:scrollbars="none"
android:layout_width="match_parent"
android:focusable="true"
android:layout_height="fill_parent">
</ListView>
</LinearLayout>
<!-- Display Items-->
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1" android:layout_marginLeft="5dp"
android:background="@drawable/border_design">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Items will be Display here"/>
</LinearLayout>
</LinearLayout>