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?

4

3 Answers 3

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 .

0
1

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

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

1
  • You can use tabs layout from design support library
    – raktale
    Commented Aug 25, 2015 at 11:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.