Search code examples
androidlayoutswipe

How to show different views when switching tabs in android?



I am developing a facebook kind of app, I have selected swipe views while creating new android project in android studio. I get the same layout page in every section as i swipe. How to show different layouts for different screens?
Thank You


Solution

  • You can use Fragments. Read abouit it and you'll see that they are very useful.

    Here you have a very good tutorial for designing different UIs for different screen sizes using Fragments.