문제

I have an activity which contains classes for my list adapter and my view pager adapter as well as your standard activity functions.

The result is the ability to swipe through multiple lists.

I'm not sure where to listen for an item click. In the main activity? In the list adapter? view pager adapter? how?

Thanks

도움이 되었습니까?

해결책

For each ListView you have to set an OnItemClickListener within your ViewPagerAdapter. You can either create a separate listener for each ListView, or give each ListView a tag and use a single listener that checks the tag and responds accordingly.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top