turing-tech / MaterialScrollBar

An Android library that brings the Material Design 5.1 sidebar to pre-5.1 devices.
Apache License 2.0
778 stars 126 forks source link

Popup + margin #38

Closed MFlisar closed 7 years ago

MFlisar commented 8 years ago

I have a transparent toolbar and the RecyclerView is underneath it (as the scrollbar is as well). To correctly show the scrollbar, the scrollbar gets a margin on top. This works fine. The problem now is, I would like the popup indicator to never be above the top position of the scrollbar.

Example:

The scrollbar is positioned in a container view and has a padding of 50dp. So I want the popup to consider the top of the scrollbar + 50dp as the top of the region that is available for the popup, resulting in a popup that is never drawn partly above this border...

turing-tech commented 8 years ago

Just to make sure I understand, the pop-up is displaying over the toolbar when it should be stopping beneath it?

MFlisar commented 8 years ago

Correctly...

turing-tech commented 8 years ago

Huh? Did you mean that was accurate or what?