So, basically, I have a fragment and in this fragment, I'd like to implement a ViewPager that allows the user to scroll between cards, (btw I ask you what I should use to make these), but I know that the ViewPager it can be used only inside activities, so how could I manage to do that?
I've added the ViewPager in the XML file of the fragment, but then I got stuck when it comes to adding the ViewPager object in the java code and to associate it with the cards.