Did you tried the setOnItemClickListener
for listview?. Even for a custom HorizontalListView
it should be implemented as it is based on a normal ListView
. Try it:
hlv.setOnItemClickListener(
new OnItemClickListener()
{
public void onItemClick(AdapterView<?> arg0, View view, int position, long id) {
Toast.makeText(this, "POSITION: "+position, Toast.LENGTH_SHORT).show();
}
}
);
Hope it helps!