jpardogo / PagerSlidingTabStrip

An interactive indicator to navigate between the different pages of a ViewPager
2.19k stars 353 forks source link

Tabs wrong height in landscape #91

Closed nwhessel closed 9 years ago

nwhessel commented 9 years ago

When in lanscape the tabs height doesn't match the toolbar height at 56dp. They are instead only 48dp tall. This causes the current tab indicator to hover 4dp above the bottom of the toolbar.

screenshot_2015-03-27-18-09-46 screenshot_2015-03-27-18-10-02

jpardogo commented 9 years ago
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/toolbar"
    android:layout_width="match_parent"
    android:layout_height="?attr/actionBarSize"
    app:theme="@style/ThemeOverlay.AppCompat.ActionBar">

    <com.astuetz.PagerSlidingTabStrip
        android:id="@+id/tabs"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>
</android.support.v7.widget.Toolbar>

You can set the height you want to the toolbar and it will work. tested.