Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indicator is hidden behind appbar when at the top #104

Open
urob0ros opened this issue Aug 28, 2017 · 2 comments
Open

Indicator is hidden behind appbar when at the top #104

urob0ros opened this issue Aug 28, 2017 · 2 comments
Labels

Comments

@urob0ros
Copy link

urob0ros commented Aug 28, 2017

How do i force the scrollbar indicator to stay below the appbar?
The scrollbar is already at the top but the indicator is being hidden behind the toolbar.
See example below:

`

<android.support.design.widget.AppBarLayout
    android:id="@+id/appbar"
    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="?attr/colorPrimary"
        app:layout_scrollFlags="scroll|enterAlways">

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <EditText
                android:id="@+id/searchEditText"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="haha"
                android:background="@android:color/transparent"
                android:layout_alignParentLeft="true"
                android:layout_alignParentStart="true"/>

        </RelativeLayout>

    </android.support.v7.widget.Toolbar>

</android.support.design.widget.AppBarLayout>

<android.support.v7.widget.RecyclerView
    android:id="@+id/recyclerView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:scrollbars="vertical"
    android:layout_below="@+id/appbar"/>

<com.turingtechnologies.materialscrollbar.DragScrollBar
    android:id="@+id/dragScrollBar"
    android:layout_width="wrap_content"
    app:msb_recyclerView="@id/recyclerView"
    app:msb_lightOnTouch="false"
    android:layout_height="match_parent"
    android:layout_alignParentTop="true"
    android:layout_alignParentRight="true"
    android:layout_alignParentEnd="true" />
`
@kasual1
Copy link

kasual1 commented Sep 3, 2017

I'm having the same problem. The indicator is partially hidden behind the toolbar (See image below).
In the sample app this problem doesn't occur.
device-2017-09-03-111411

@turing-tech
Copy link
Owner

Is the track thumb (the curvy thing that you use to scroll) ever hidden behind the title bar or just the indicator?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants