Change Layout with your finger

0

Hello, I'm wondering how do I change one layout to another by dragging the screen .... as if it were in a gallery but instead of photos it would be different layouts

Thank you !!!

    
asked by anonymous 02.06.2017 / 00:48

1 answer

0

You have to use the component called ViewPager that allows you to slide sideways between various Fragments. For this you will also need to implement an Adapter for the same one that will load the Fragments according to the selected "page". And finally, you can set up a different layout for each Fragment.

More details and instructions:

link

    
02.06.2017 / 02:27