florent37 / TutoShowcase

A simple and Elegant Showcase view for Android
Apache License 2.0
508 stars 89 forks source link

Properly apply status bar offset on full-screen layout #15

Closed ezaquarii closed 7 years ago

ezaquarii commented 7 years ago

When displaying circle above view position in layout with fitsSystemWindows flag, circle Y positon is adjusted for status bar height. This is not correct.

This change calculate the offset depending on fitsSystemWindows flag on content layout.

By default we try to guess fitsSystemWindows flag by checking direct child of content container, but we can always enforce out own setting by calling setFitsSystemWindows() setter.