Skip to content
Advertisement

how to get access to button in viewPager

i would like to ask about ViewPager i had created 2 layouts in viewPager where you can slide between them. but i totaly do not know how to gain access to buttons inside of theese 2 views.

JavaScript

so how could i call something inside of one of theese views? this does not trigered the onclicklistener.

please help thanks.

Advertisement

Answer

you should access the button from within the fragment by finding the button id

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement