Android - difference between View.OnLayoutChangeListener and ViewTreeObserver.OnGlobalLayoutListener
<p>According to the doc, the first is</p>

<p>Interface definition for a callback to be invoked when the layout bounds of a view changes due to layout processing.</p>

<p>and the second is </p>

<p>Interface definition for a callback to be invoked when the global layout state or the visibility of views within the view tree changes.</p>

<p>///</p>

<p>But they seem pretty similar to me. I was even able to use both of them interchangeably. Can someone give me a practical example of the usage of them? Thanks </p>