Umm... what does your code look like?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sun, Apr 29, 2012 at 7:22 PM, alv <[email protected]> wrote:

> I have a ListActivity with my own ListView class and Adapter to add
> data to the list.. I also have a unique rowitem latyout that defines a
> TextView and 2 ImageView items:
> <LinearLayout
>  xmlns:android="http://schemas.android.com/apk/res/android";
>  android:layout_width="wrap_content"
>  android:layout_height="wrap_content"
>  android:orientation="horizontal">
>
>
>    <TextView
>        android:id="@+id/textView1"
>        android:layout_width="258dp"
>        android:layout_height="wrap_content"
>        android:onClick="@string/myClickHandler"
>        android:text="@+id/label"
>        android:textAppearance="?android:attr/textAppearanceMedium" />
>
>    <ImageView
>        android:id="@+id/imageView1"
>        android:layout_width="wrap_content"
>        android:layout_height="wrap_content"
>        android:src="@android:drawable/ic_menu_edit"
> android:onClick="@string/myClickHandler"/>
>
>    <ImageView
>        android:id="@+id/imageView2"
>        android:layout_width="wrap_content"
>        android:layout_height="wrap_content"
>        android:src="@android:drawable/ic_menu_delete"
> android:onClick="@string/myClickHandler"/>
>
> </LinearLayout>
>
>
> I am able to drag and drop rows, as well as respond to clicks of the
> images of the rows.. My question is, how can I figure out what row a
> clicked ImageView object is in?  The images are used to edit and
> delete row data... I can see the click but I cant seem to reconcile
> what row the image is in?  Thanks!!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to