user5263894
user5263894

Reputation:

Create an horizontal menu

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?

Upvotes: 0

Views: 4193

Answers (3)

IntelliJ Amiya
IntelliJ Amiya

Reputation: 75788

@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 .

Upvotes: 2

LEETAEJUN
LEETAEJUN

Reputation: 186

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

Upvotes: 1

Pier Giorgio Misley
Pier Giorgio Misley

Reputation: 5351

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

Upvotes: 1

Related Questions