I'm making a custom ImageView
. One of the methods is to load an image from a URL. And I want to retrieve the Bitmap in a Thread and load the bitmap in the UI thread.
How can I make a runOnUIThread()
call for painting the bitmap?
Is there some kind of built in function? Or should I create a Handler
in the constructor and use it for running runnables in the UI thread?