In my activtiy, I am loading a recyclerview that downloads pictures from the internet.
The only problem is, that the acitvity will only become visible when the loading of the pictures is done. I call the function from within the OnCreate()
method. Since this made it obvious, I decided to put the function into OnWindowFocusChanged()
, yet still the activity will only start showing when the pictures are loaded. (This is like a 1 second delay, but its a litttle too much.)
Where would I call my InitRecView()
method to make sure it will start loading once the activity is already visible to the user?
Thanks