Android BottomSheetBehavior callback method onSlide() gives confusing slideOffset values
<p>I am implementing an application where I use a bottom sheet with the behavior defined by <code>@string/bottom_sheet_behavior</code>. Additionally I set a <code>BottomSheetBehavior.BottomSheetCallback()</code> programmatically because I want to use the onSlide() method to animate a padding. Therefore I really need the slideOffset value to calculate the new padding to set.
I read the  <a href="https://developer.android.com/reference/android/support/design/widget/BottomSheetBehavior.BottomSheetCallback.html#onSlide(android.view.View,%20float)" rel="noreferrer">docs</a>. There they say that the value ranges from -1 to 0 when the state is between hidden and collapsed state. I only can see this behavior when my phone or tablet is in portrait mode and is independent of the android version. However in landscape mode the range goes all from 1 to -1.
In detail here is a value history of a bottom sheet going from hidden to expand:  </p>

<pre><code>D/SLIDE: -0.86160713  
D/SLIDE: -0.5714286  
D/SLIDE: -0.29910713  
D/SLIDE: -0.0625  
D/SLIDE: 0.11382114  
D/SLIDE: 0.27235773  
D/SLIDE: 0.40650406  
D/SLIDE: 0.51626015  
D/SLIDE: 0.6300813  
D/SLIDE: 0.69512194  
D/SLIDE: 0.75609756  
D/SLIDE: 0.8130081  
D/SLIDE: 0.8577236  
D/SLIDE: 0.8943089  
D/SLIDE: 0.9186992  
D/SLIDE: 0.9430894  
D/SLIDE: 0.9593496  
D/SLIDE: 0.97154474  
D/SLIDE: 0.9796748  
D/SLIDE: 0.9878049  
D/SLIDE: 0.9918699  
D/SLIDE: 0.99593496  
D/SLIDE: 1.0
</code></pre>

<p>I only set the new state of the bottom sheet on a button click. 
The desired values would begin on -1 and end on 0.0 with more granular steps between. In this history the values increase as well but they go up to +1.<br>
Does anybody else had to face the same strange behavior and can give me a hint what I am missing?<br>
If any additional code is required I will update my question.</p>

<p>Thanks in advance.<br>
Peter</p>