0

I'm new to Android development and I have to build an Android version of a iOs app. I have to build an horizontal menu in the bottom of the screen. Something like MOVIES|TV SHOWS|PERSONAL VIDEOS in this image

How do you suggest me to proceed? If I did an activity layout with a tabbed o linear layout at the bottom and fragments for the above contents?

Rohit5k2
  • 17,948
  • 8
  • 45
  • 57

3 Answers3

2

@Ivan Lasorsa :

You can use ViewPager Fragment as main layout and for individual pager views we use Fragments. The tabs are part of Action Bar.

Swipe-view should consume the entire layout, then your layout looks like this:

 <?xml version="1.0" encoding="utf-8"?>
<android.support.v4.view.ViewPager
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/pager"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

So please take a look Android Tab Layout with Swipeable Views Here . I hope it will helps you .

IntelliJ Amiya
  • 74,896
  • 15
  • 165
  • 198
1

I don't recommend bottom tab bar

because it causes the wrong touch

Pure-Android : http://developer.android.com/design/patterns/pure-android.html

but if you have to implement, you can read to https://stackoverflow.com/a/7431480/2530660

Community
  • 1
  • 1
LEETAEJUN
  • 186
  • 9
1

It's the tabbed activity, here is the doc ;)

Pier Giorgio Misley
  • 5,305
  • 4
  • 27
  • 66