What event signifies that the draw of a View
is complete?
I know about ViewTreeObserver
listeners, but I couldn't find the 'final' one, which indicates, that the job is done.
What event signifies that the draw of a View
is complete?
I know about ViewTreeObserver
listeners, but I couldn't find the 'final' one, which indicates, that the job is done.
There is no such hook for View class (or TextView). There is, however,
onDraw()
method which is called when the view should render its content.So you can do: