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.
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 theviewpager2
, it acts a lot more differently. I have 2 fragments attached to theviewpager2
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.