daimajia / AndroidSwipeLayout

The Most Powerful Swipe Layout!
MIT License
12.38k stars 2.67k forks source link

setOnItemClickListener not Works #292

Open LinkOut opened 8 years ago

LinkOut commented 8 years ago

I'm using this library https://github.com/emilsjolander/StickyListHeaders to have a sticky header listview, and i also want to use this one on each listview row, but setOnItemClickListener setting SwipeLayout as root view of my custom list row, does not work anymore.

Thanks

LinkOut commented 8 years ago

Anyone can help on this please?

chathuralakmal commented 6 years ago

im also having this issue after i implemented StickyHeader.

chathuralakmal commented 6 years ago

it works with adapter. so i made my intent from adapter. on public View generateView(int position, ViewGroup parent) {

 swipeLayout.getSurfaceView().setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(mContext, ClassDetailView.class);
                mContext.startActivity(intent);
            }
        });