I have a UI segment which look like this :
<LinearLayout
android:orientation="horizontal"
android:minWidth="25px"
android:minHeight="25px"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/linearLayout4">
<ImageView
android:src="@android:drawable/ic_menu_gallery"
android:layout_width="0dp"
android:layout_height="24dp"
android:layout_weight="1" />
<TextView
android:text="Text"
android:layout_width="0dp"
android:layout_height="fill_parent"
android:layout_weight="1"
android:gravity="center" />
</LinearLayout>
I was wandering whether its possible to listen to a click event on the linearlayout and get it even if i click on the ImageView, similar to whats going on in WPF with routed events.
Thanks.