timusus / RecyclerView-FastScroll

A simple FastScroller for Android's RecyclerView
Other
1.39k stars 183 forks source link

Popup not showing on scroll #112

Open yoobi opened 3 years ago

yoobi commented 3 years ago

I'm using your library and it's working really nice however I have issue showing the popup when user scroll the recyclerview

I want the popup to appear when the user start scrolling, is it possible ?

I've implemented it that way:

    override fun getSectionName(position: Int): String = getItem(position).countryStripAccents[0].toString()
<com.simplecityapps.recyclerview_fastscroll.views.FastScrollRecyclerView
        android:id="@+id/rv_country"
        android:layout_width="0dp"
        android:layout_height="0dp"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
        app:fastScrollPopupBgColor="@color/primaryLightColor"
        app:fastScrollPopupTextColor="@color/primaryTextColor"
        app:fastScrollThumbColor="@color/primaryDarkColor"
        app:fastScrollTrackColor="@color/primaryTextColor"
        app:fastScrollThumbEnabled="true"
        tools:listitem="@layout/item_country"/>