ksoichiro / Android-ObservableScrollView

Android library to observe scroll events on scrollable views.

Home Page:http://ksoichiro.github.io/Android-ObservableScrollView/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug in FlexibleSpaceWithImageScrollViewFragment

taar1 opened this issue · comments

You can easily replicate this problem if you do this:

  • Open fragment_flexiblespacewithimagescrollview.xml
  • In this XML in the TextView change @string/lipsum to @string/lipsum_short.
  • Start the demo.
  • Open the FlexibleSpaceWithImageWithViewPagerTabActivity
  • Move to the second tab Butter Cookie
  • Scroll completely down in this tab
  • Move back left to the tab Applepie

You will now see that the main image on top is halfway out of the screen while the text is still centered. It all looks very off and definitely wrong.

I have an app with several tabs and in some cases there is only a little text inside the tab without any scrolling. When I move left and right between the tabs and scroll down in a lengthy tab and then move further I get this exact problem a lot.

Is there a way to fix this?