`attachShy()` doesn't use any offset even with `useOnlyStatusBarTopOffset()`
When I use attach() I have to use useOnlyStatusBarTopOffset() or the toolbar will start under the status bar (on actual device running kitkat 4.4.2),
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context=".HomeActivity">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/brand_color"
android:elevation="4dp"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:layout_scrollFlags="scroll|enterAlways"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
</android.support.design.widget.AppBarLayout>
<net.begether.chaino.utils.NestedWebView
android:id="@+id/webView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_centerHorizontal="true"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</android.support.design.widget.CoordinatorLayout>
now, when I use attachShy() instead (to benefit from hide when scroll behavior), no offset is added at all and the toolbar starts under the status bar even with using useOnlyStatusBarTopOffset().
The only thing that fixed it is with using android:fitsSystemWindows="true" on the CoordinatorLayout, but using this prevents my toolbar from hiding with page scrolling and all AppBar goodness are gone.
I'm also seeing this same issue.
+1, encountered same issue
The shy behavior is greatly simplified with the newest version of the library. Now this shouldn't be an issue, as you can use the BottomBar just like any other View.