I have implemented horizontal page view. One base page and three swipe pages.
The base page is linked to the java class file. But there are actions in swipe pages. for eg: button click. How do i do it? Can i link the swipe pages to the same java class file?
I have implemented horizontal page view. One base page and three swipe pages. The
Share
Not sure what you mean…
1 – Are you searching for a way to use an xml file as child in your swiper?
This can be done using a LayoutInflater
2 – This is already done but you can’t find out how to control certain events?
If you have inflated the views using the LayoutInflater you can access that Views children:
OR
You can add the onClick attribute in xml and implement that in your main activity ie:
xml: onClick="btn1pressed"java: public void btn1pressed(View v) {}