I have an Android app with a ListActivity
in the main view. The list contains a LinearLayout
with a TextView
and a hidden delete Button. The delete Button will be hidden by default. I want to use a fling gesture to show the button. I am able to detect the fling gesture thanks to question #937313 on stackoverflow. It's not clear to me how to determine which item in the list was flung, since the onTouch listener listens to the ListView
. The item is not necessarily selected so getSelected* methods can't be used reliably. I am using the SimpleListAdaptor
so I don't have direct access to the View Objects in the ListView
.
Any ideas?