SupahSoftware/AndroidExampleCarousel

When app is opened, you don't see a carousel

Closed this issue · 10 comments

When app is opened, the adapter images are not in carousel size. Only after user touches the screen that onScrollListener is triggered.

Actually, this is happening with the sample

Here, it only updates the view size after first scroll.
bug

@SupahSoftware @bernaferrari , I had the same issue just put this code inside the HorizontalCarouselRecyclerView class

init {
        onScrollChanged()
      }

Closing this issue due to the solution above by @mohammed-alaa . Thanks for posting the update Mohammed! I'm curious as to why this is an issue for some people, and not for others tho. It seems like it could be a race condition, as it wasn't happening for me.

@bernaferrari Whoops. There was no pull request so I updated the code locally and forgot to push after my commit. When I get home tonight I'll push the changes up. Thanks for letting me know!