I have a custom ListView with my own adapter. I\'m handling the click on a Button in my ListView\'s item, and I want the ListVi
In my case GridItemClickListner didn't worked for some reason. I access the Gridview from Adapter class using this
public View getView(final int position, View convertView, ViewGroup parent) {
convertView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
((ClockGridView) v.getParent()).performItemClick(v, position, v.getId());
(OR)
((ClockGridView)parent).performItemClick(v, position, v.getId());
}
});
}
"ClockGridView" which extends "GridView" Class.