{"id":13642692,"url":"https://github.com/timusus/RecyclerView-FastScroll","last_synced_at":"2025-04-20T20:32:26.268Z","repository":{"id":42625913,"uuid":"49540923","full_name":"timusus/RecyclerView-FastScroll","owner":"timusus","description":"A simple FastScroller for Android's RecyclerView","archived":false,"fork":false,"pushed_at":"2023-08-13T14:12:22.000Z","size":1863,"stargazers_count":1395,"open_issues_count":16,"forks_count":181,"subscribers_count":35,"default_branch":"master","last_synced_at":"2025-04-14T03:06:16.669Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timusus.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-01-13T01:35:25.000Z","updated_at":"2025-04-05T08:19:08.000Z","dependencies_parsed_at":"2022-07-21T17:32:48.457Z","dependency_job_id":"29034be2-8eca-41b6-90ee-2af8a1fce332","html_url":"https://github.com/timusus/RecyclerView-FastScroll","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timusus%2FRecyclerView-FastScroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timusus%2FRecyclerView-FastScroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timusus%2FRecyclerView-FastScroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timusus%2FRecyclerView-FastScroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timusus","download_url":"https://codeload.github.com/timusus/RecyclerView-FastScroll/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249958877,"owners_count":21351732,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T01:01:35.063Z","updated_at":"2025-04-20T20:32:26.250Z","avatar_url":"https://github.com/timusus.png","language":"Java","readme":"# RecyclerView-FastScroll\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.simplecityapps/recyclerview-fastscroll/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.simplecityapps/recyclerview-fastscroll) [![API](https://img.shields.io/badge/API-14%2B-blue.svg?style=flat)](https://android-arsenal.com/api?level=14)\n[![License](http://img.shields.io/badge/license-APACHE2-blue.svg)](NOTICE)\n[![Build Status](https://travis-ci.org/timusus/RecyclerView-FastScroll.svg?branch=master)](https://travis-ci.org/timusus/RecyclerView-FastScroll)\n\nA simple `FastScroller` for Android's `RecyclerView`.\n\nSupports vertical `RecyclerViews` using either `LinearLayoutManager` or `GridLayoutManager` (including multiple spans).\n\nThe style is loosely based on the `ListView` `FastScroller` from whatever the last version of Lollipop was. This library borrows heavily from [Google's Launcher3 FastScroller](https://android.googlesource.com/platform/packages/apps/Launcher3/)\n\n![Screenshot](https://github.com/timusus/RecyclerView-FastScroll/blob/master/screenshot.png)\n\n\n### Gradle\n`compile 'com.simplecityapps:recyclerview-fastscroll:2.0.1'`\n\n\n### Usage\nYou must use `FastScrollRecyclerView` as your base `RecyclerView`. See the sample project if you're having trouble.\n\nVia xml:\n\n```\n\u003ccom.simplecityapps.recyclerview_fastscroll.views.FastScrollRecyclerView\n    android:id=\"@+id/recycler\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    app:fastScrollPopupBgColor=\"@color/colorAccent\"\n    app:fastScrollPopupTextColor=\"@android:color/primary_text_dark\"\n    app:fastScrollThumbColor=\"@color/colorAccent\" /\u003e\n```\n\nTo display the `FastScrollPopup`, your adapter must implement `FastScrollRecyclerView.SectionedAdapter` and override `getSectionName()`.\n\nIf you need to know when fast-scrolling starts or stops, you can attach an OnFastScrollStateChangedListener to the FastScrollRecyclerView.\n\n\n##### Varying Row Heights\n\nBy default, `FastScrollRecyclerView` assumes that all items in the adapter have the same height. If your adapter has\nitem views with different heights, then you should make your adapter implement the `MeasurableAdapter` interface and\noverride `getViewTypeHeight()` – otherwise the scroll thumb may not appear in the correct position and scrolling may\nbe inconsistent.\n\n`getViewTypeHeight()` returns the height of a single view of a given type in pixels. The height of each view must be\nfixed and constant between all instances of a view type. Because the implementor is responsible for computing this\nvalue before views are laid out, this is not suitable for view types where the height of a view is determined by a\nvariable number of lines of text that the item consumes.\n\nCurrently, `MeasurableAdapter` only works with `LinearLayoutManager`. Using `MeasurableAdapter` with a \n`GridLayoutManager` that has more than one span will cause the scrollbar thumb to reach the bottom of the list before\nthe halfway point on the scrollbar's background.\n\n\n##### Customisation\n\nYou can enable/disable autohide using the `fastScrollAutoHide` \u0026 `fastScrollAutoHideDelay` attributes in xml:\n\n```\n \u003ccom.simplecityapps.recyclerview_fastscroll.views.FastScrollRecyclerView\n     app:fastScrollAutoHide=\"true\"\n     app:fastScrollAutoHideDelay=\"1500\"\n     ...\n```\n             \nOr programmatically via `setAutoHideDelay(int hideDelay)` and `setAutoHideEnabled(boolean autoHideEnabled)`\n\nThe following can  be styled via xml:\n\n- Popup background\n- Popup text\n- Popup background size\n- Popup text size\n- Track width and background\n- Thumb width and color\n- Popup position\n- Popup text vertical alignment mode\n\n```\n\u003ccom.simplecityapps.recyclerview_fastscroll.views.FastScrollRecyclerView\n    app:fastScrollPopupBgColor=\"@color/colorAccent\"\n    app:fastScrollPopupTextColor=\"@android:color/primary_text_dark\"\n    app:fastScrollPopupTextSize=\"56sp\"\n    app:fastScrollPopupBackgroundSize=\"88dp\"\n    app:fastScrollThumbColor=\"@color/colorAccent\"\n    app:fastScrollThumbWidth=\"6dp\"\n    app:fastScrollTrackColor=\"#1f000000\"\n    app:fastScrollTrackWidth=\"8dp\"\n    app:fastScrollPopupPosition=\"adjacent\"\n    app:fastScrollPopupTextVerticalAlignmentMode=\"fontMetrics\"/\u003e\n    ...\n```\n\nOr programmatically via\n\n- `setThumbColor(@ColorInt int color)`\n- `setTrackColor(@ColorInt int color)`\n- `setPopupBgColor(@ColorInt int color)`\n- `setPopupTextColor(@ColorInt int color)`\n- `setPopupTextSize(int size)`\n- `setPopupPosition(@FastScroller.FastScrollerPopupPosition int position)`\n\n\nYou can enable/disable fast-scrolling via:\n\n```\n\u003ccom.simplecityapps.recyclerview_fastscroll.views.FastScrollRecyclerView\n    app:fastScrollThumbEnabled=\"false\"\n    ...\n```\nOr programmatically via `setFastScrollThumbEnabled(boolean enabled)`\n","funding_links":[],"categories":["RecyclerView"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimusus%2FRecyclerView-FastScroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimusus%2FRecyclerView-FastScroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimusus%2FRecyclerView-FastScroll/lists"}