insetter icon indicating copy to clipboard operation
insetter copied to clipboard

Request: please explain more about the attribute "app:layout_edgeToEdge"

Open AndroidDeveloperLB opened this issue 4 years ago • 2 comments

This is the only thing I can see about it: https://github.com/chrisbanes/insetter/blob/master/dbx/README.md#edge-to-edge-attributes

" There is currently just one edge-to-edge attribute:

app:layout_edgeToEdge: Set this view's system-ui visibility with the flags required to be laid out 'edge-to-edge', or not. "

But what does it do? When to use it? When is it useful? Is it for Edge display? How is it related to insets?

Please explain.

AndroidDeveloperLB avatar Dec 07 '19 08:12 AndroidDeveloperLB

It makes it so that the view is drawn behind the system bars IE there is no opaque system bars. You are now responsible for handling your views not being obstructed by those bars (which is the point of the rest of the binding attributes, so that you can avoid views being obstructed.

NickM-27 avatar Aug 25 '20 13:08 NickM-27

So it's not something new, right? Can you show how to use it? I don't see it being used in the sample...

AndroidDeveloperLB avatar Aug 25 '20 21:08 AndroidDeveloperLB