RecyclerView-FastScroll icon indicating copy to clipboard operation
RecyclerView-FastScroll copied to clipboard

Popup not showing on scroll

Open yoobi opened this issue 5 years ago • 0 comments

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"/>

yoobi avatar Jan 11 '21 17:01 yoobi