I am beginner at android development. I was recently looking at someone else's code and found some functions view.onApplyWindowInsets(windowInsets), windowInsets.getSystemWindowInsetTop()
. And this word was used frequently in the same app.
I tried googling it and found InsetDrwable
class with explanation
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.
Can some one explain me what is the meaning on Insets
and what those piece of code up there meant?
A explanation with an example will be appreciated.