Re: [mono-android] Detecting and responding to image clicks in a list view item.

2012-08-10 Thread Sayed Arian Kooshesh
Use Getpositionforview or the equiv in mono. It's a member of http://developer.android.com/reference/android/widget/AdapterView.html#getPositionForView%28android.view.View%29 On Tue, Aug 7, 2012 at 1:39 AM, Steven Pack wrote: > > Hi all, long time no post. > > I have a listview. and the items ar

Re: [mono-android] Detecting and responding to image clicks in a list view item.

2012-08-07 Thread Jonathan Pryor
On Aug 7, 2012, at 7:08 PM, Steven Pack wrote: > OK, last thing. When I delete the item, I want the listview to update and NOT > scroll to the top. Recreating the adapter with the now updated list updates > the view, but scrolls to the top (and is inefficient). All the SO articles > and docco s

Re: [mono-android] Detecting and responding to image clicks in a list view item.

2012-08-07 Thread Steven Pack
; Discussions related to Mono for Android Sent: Wednesday, 8 August 2012 2:02 AM Subject: Re: [mono-android] Detecting and responding to image clicks in a list view item. On Aug 7, 2012, at 2:39 AM, Steven Pack wrote: > and deleting the item: > > void DeleteItem(int position) > 

Re: [mono-android] Detecting and responding to image clicks in a list view item.

2012-08-07 Thread Jonathan Pryor
On Aug 7, 2012, at 2:39 AM, Steven Pack wrote: > and deleting the item: > > void DeleteItem(int position) > { > _log.Debug(Tag, "Deleting from position: " + position); > > var item = Headwords[position]; > Headwords.Remove(item); > > Refre

[mono-android] Detecting and responding to image clicks in a list view item.

2012-08-06 Thread Steven Pack
Hi all, long time no post. I have a listview. and the items are defined as a textview with a cross image over on the right. Like this: http://schemas.android.com/apk/res/android";     android:orientation="horizontal"     android:layout_width="fill_parent"     android:layout_height="wrap_conte