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

The UI doesn't show on Galaxy S5 #318

Closed stefanionescu closed 4 years ago

stefanionescu commented 7 years ago

Hey devs,

I tried implementing the ViewPager in my app. I followed the instructions from the README, but instead of seeing the Toolbar, the ViewPager and the primary color on the screen, my screen is black (Attached image).

I'm targeting API 25. I use the theme described in the README for the Activity. Here is the XML for the screen:

    <com.github.florent37.materialviewpager.MaterialViewPager
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:id="@+id/materialViewPager"
      app:viewpager_logo="@layout/header_logo"
      app:viewpager_logoMarginTop="100dp"
      app:viewpager_color="@color/colorPrimary"
      app:viewpager_headerHeight="200dp"
      app:viewpager_headerAlpha="1.0"
      app:viewpager_hideLogoWithFade="false"
      app:viewpager_hideToolbarAndTitle="false"
      app:viewpager_enableToolbarElevation="true"
      app:viewpager_parallaxHeaderFactor="1.5"
      app:viewpager_headerAdditionalHeight="20dp"
      app:viewpager_displayToolbarWhenSwipe="true"
      app:viewpager_transparentToolbar="true"
      app:viewpager_animatedHeaderImage="true"
      app:viewpager_disableToolbar="false"
      >

      </com.github.florent37.materialviewpager.MaterialViewPager>

 </RelativeLayout>

18926620_2178915489001491_1750004039_o

nobita0522 commented 7 years ago

me.too。My Api is 23

nobita0522 commented 7 years ago

do you deal with it?can you tell me how to deal with it.it has spend me lots of time to think it!...

adelabd commented 7 years ago

I Have exactly the same problem ... My api is 25

jennyqujy commented 7 years ago

Same problem. Tried api 21 and 26

wen-yuan-zhang commented 4 years ago

Me too. My Android Studio is 3.6 and API is 29.