hotwired / turbo-android

Android framework for making Turbo native apps
MIT License
424 stars 50 forks source link

Styling the "page loading" spinner #275

Closed pauljacksonrodgers closed 1 year ago

pauljacksonrodgers commented 1 year ago

When navigating from one web fragment to another, there is a brief moment when the new page is being loaded, where I see the loading spinner animation. In that window, the background color flashes to either pure white or pure black depending on whether the system is in light or dark mode.

Is there a way to configure the color of the background under that loading animation to make the transitions less jarring?

pauljacksonrodgers commented 1 year ago

Nevermind! I figured out I could override createProgressView and call view.setBackgroundColor in there 👍

leonvogt commented 1 year ago

The comment that we can override createProgressView and call view.setBackgroundColor helped me. Thank you! 😄