Android Automotive: Loading state with invalidate and onGetTemplate
I’ve got following simple use-case:
Open a screen with a simple Pane template, fetch data from a server and display the result in the pane template. During fetching a loading spinner should be displayed.
I use a ViewModel with a uiState. Every time the state changes “invalidate()” is called.