florent37 / MaterialViewPager

A Material Design ViewPager easy to use library
https://www.fiches-plateau-moto.fr
Apache License 2.0
8.13k stars 1.48k forks source link

How disable header and show only tabs with elevation? #32

Open objque opened 9 years ago

objque commented 9 years ago

Hello,

Please, tell me: how disable header (picture) and show only tabs with elevation? I want give this: 2015-05-21 19-26-32

I try set: viewpager_headerHeight="120dp" viewpager_headerAlpha="0" viewpager_parallaxHeaderFactor="0" viewpager_hideToolbarAndTitle="false"

And have this (bug?): animation1432226533

What am i doing wrong? (device: nexus5 (5.1.1))

MGaetan89 commented 9 years ago

This is how I configured my MaterialViewPager to have just the tab:

<com.github.florent37.materialviewpager.MaterialViewPager
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:viewpager_color="?attr/colorPrimary"
    app:viewpager_enableToolbarElevation="true"
    app:viewpager_headerAdditionalHeight="3.5dp"
    app:viewpager_headerHeight="40dp"/>

But I have the same scrolling issue (like others #5).