-1

I want to make something like this in my android app

enter image description here

With 2 or 3 activities or more. I don't want to use visible tabs with names. I just want when i slide through a new activity with its own layout appear, a totally different screen. I've read about viewpager and pageradapter, but i' m a little confused. What do you think is the best way to do it?

tur1ng
  • 1,082
  • 1
  • 10
  • 24

2 Answers2

2

This is what you need, just follow this tutorial http://www.androidhive.info/2015/09/android-material-design-working-with-tabs/

You dont even need multiples activities.

Hugo Houyez
  • 470
  • 3
  • 19
  • There will be something like different apps performing it that tabs, why i don't need different activities? – tur1ng Aug 12 '16 at 09:21
  • Cause in each Fragment you can do what you want and perform exactly the same things that you would have done in an activity. You really should try this tutorial, design is good and easy to understand and you can even just C/C – Hugo Houyez Aug 12 '16 at 09:31
  • Link is dead... – pafi Jan 21 '23 at 17:57
1

You can actually create a swiping activity in android studio.

Goto:

File -> New -> Activity -> Tabbed Activity and choose Navigation Style to be Swipe Views.

Android Studio will do the rest. Then you can change the fragments according to your need.

EDIT:

This is a nice example that demonstrate using Activity with ViewPager.

Android PagerView between Activities

Community
  • 1
  • 1
M.Waqas Pervez
  • 2,492
  • 2
  • 19
  • 33