What are insets in android? : <p>I am beginner at android development. I was recently looking at some one else code and fond some functions <code>view.onApplyWindowInsets(windowInsets), windowInsets.getSystemWindowInsetTop()</code>. And this word was used again and again in the same app.</p>

<p>I tried googling it and found <code>InsetDrwable</code> class with explanation</p>

<blockquote>
  <p>A Drawable that insets another Drawable by a specified distance. This is used when a View needs a background that is smaller than the View's actual bounds.</p>
</blockquote>

<p>Can some one explain me what is the meaning on <code>Insets</code> and what those piece of code up there meant?</p>

<p>A explanation with an example will be appreciated. </p>
