MatteoBattilana / WeatherView

WeatherView is an Android Library let you make cool weather animations for your app
Apache License 2.0
514 stars 80 forks source link

Bug with ViewPager2 #32

Open ChristophyBarth opened 1 year ago

ChristophyBarth commented 1 year ago

Great stuff you've built here! 👏

I figured that the WeatherView works very well when it is in a fragment hosted by viewpager. However, with the viewpager2, it acts a lot more differently. I have 2 fragments attached to the viewpager2 in question. When the app is launched, the WeatherView shows well for both fragments, but when you toggle between both fragments, neither of them will show the WeatherView anymore.

As I mentioned earlier, it works perfectly when it is viewpager. But we all know that is deprecated already.