Home > Mobile >  ViewPager item fragments the ListView inside how to add click listen?
ViewPager item fragments the ListView inside how to add click listen?

Time:10-12

I have a ViewPager, the contents of the ViewPager are three fragments, one of the fragments in a ListView, what should I give the ListView OnItemSelectedListener events?

CodePudding user response:

In a ListView's fragments OnItemSelectedListener to set it up

CodePudding user response:

reference 1/f, the wind light cloud light v10 reply:
OnItemSelectedListener to set it up in the ListView's fragments

But why my listening is not perform? To solve the

CodePudding user response:

To the root layout of item set focusable try="false"

CodePudding user response:

Look over RecyclerView advice
  • Related