I want to create a ListView of objects in one of my activities, each row should have TextView and 3 Buttons. When I click on the buttons I don't want to handle them on the ListView' Adapter, I want to use them inside my Activity.
Is there any way to declare the buttons in my activity and set OnClickListener() for them? In addition I need to get the button position in the ListView.
In other words I want to do something like that in my activity:
button = listView.FindViewById<Button>(Resource.Id.button);
button.SetOnClickListener(this);
and in public void OnClick(View v) do something like:
if (v == button)
{
int positionInList = /* something */;
//...
}