Hi everyone,
I have a ListView Adapter.
Here is the Layout of each row,
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="250dp"
android:id="@+id/modalpopup">
<LinearLayout
android:layout_height="60dp"
android:layout_gravity="left"
android:layout_width="50dp">
<ImageView
android:src="@drawable/profilepic"
android:layout_width="65px"
android:layout_height="75px"
android:id="@+id/ImageTest" /> // how to identify the click is on this particular imageView
</LinearLayout>
<LinearLayout
android:layout_height="60dp"
android:layout_gravity="left"
android:layout_marginLeft="4dp"
android:layout_width="200dp">
<LinearLayout
android:orientation="vertical"
android:layout_height="fill_parent"
android:layout_width="fill_parent">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/spaceName" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/spaceOwner" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
ListView.ItemClick will get triggered when i click on every bit of the ListView. How do i identify the click on particular ImageView or TextView?
Any Ideas? Please share.