title: Android - How to tell when a specific view has been rendered?
body: <p>I have a regular button that I want to display a timer on. So imagine the text of the button changes every second as a countdown timer. However, I need this timer to only start when the button is fully rendered and ready to go on the screen.</p>
  
  <p>Right now I'm starting the timer (which is an <code>AsyncTask</code>) in the <code>onCreateView()</code> of a fragment. This isn't that accurate, because I do some other loading stuff that I have to have. I could potentially move the timer start at the bottom of <code>onCreateView()</code> but even that isn't very accurate either.</p>
  
  <p>I saw that there's a <code>OnGlobalLayoutListener</code> tree observer. But I imagine this when an entire view tree is "about to be" drawn? how do I know exactly when my particular button is rendered and visible to the user?</p>