July 2018
Intermediate to advanced
266 pages
7h 11m
English
Before we proceed to testing the UI, let's add some delay to asyncFetchArticles() so that we can actually see the ProgressBar for some time before we display the data:
private fun asyncFetchArticles(feed: Feed, dispatcher: CoroutineDispatcher) = async(dispatcher) { delay(1000) val builder = factory.newDocumentBuilder() ...}
Now, when running the application, you will find that the news is actually being displayed along with the scrollbars on the side, indicating the current scrolling position. But if you scroll enough you will see some issues with some content:

Read now
Unlock full access