{"id":20509264,"url":"https://github.com/futuremind/recycler-fast-scroll","last_synced_at":"2025-04-05T04:12:46.422Z","repository":{"id":35720027,"uuid":"39998154","full_name":"FutureMind/recycler-fast-scroll","owner":"FutureMind","description":"Provides fast scroll and section idexer for recycler view","archived":false,"fork":false,"pushed_at":"2021-09-22T17:25:21.000Z","size":247,"stargazers_count":495,"open_issues_count":35,"forks_count":107,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-03-29T03:08:34.352Z","etag":null,"topics":["alphabetindexer-","android","bubble","fastscroll","recyclerview","recyclerview-adapter","scrolling"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FutureMind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-31T09:35:24.000Z","updated_at":"2025-02-15T07:33:22.000Z","dependencies_parsed_at":"2022-09-18T20:42:18.720Z","dependency_job_id":null,"html_url":"https://github.com/FutureMind/recycler-fast-scroll","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutureMind%2Frecycler-fast-scroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutureMind%2Frecycler-fast-scroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutureMind%2Frecycler-fast-scroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutureMind%2Frecycler-fast-scroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FutureMind","download_url":"https://codeload.github.com/FutureMind/recycler-fast-scroll/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284951,"owners_count":20913704,"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":["alphabetindexer-","android","bubble","fastscroll","recyclerview","recyclerview-adapter","scrolling"],"created_at":"2024-11-15T20:23:39.301Z","updated_at":"2025-04-05T04:12:46.406Z","avatar_url":"https://github.com/FutureMind.png","language":"Java","readme":"# Deprecation notice\n\nWith significant changes to recyclerview and stable jetpack compose being released, this project will no longer be maintained.\n\n# Recycler Bubble\nProvides fast scroll and section indexer for recycler view. Uses a different mechanism than similar libraries to provide smooth movement of scroller handle when scrolling the list. Can be used with vertical and horizontal RecyclerViews. You can style it or even use a custom layout and animations for your fast scroll handle and bubble.\n\n![alt tag](http://i.imgur.com/Ugqhzud.gif)\n\n## Usage\n\n### Minimal working example\n\nIn your layout file:\n```xml\n\u003cRelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\u003e\n\n    \u003candroid.support.v7.widget.RecyclerView\n        android:id=\"@+id/recyclerview\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        /\u003e\n\n    \u003ccom.futuremind.recyclerviewfastscroll.FastScroller\n        android:id=\"@+id/fastscroll\"\n        android:orientation=\"vertical\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"match_parent\"\n        android:layout_alignParentRight=\"true\"/\u003e\n\n\u003c/RelativeLayout\u003e\n```\n\nIn Activity/Fragment:\n```java\n        recyclerView = (RecyclerView) findViewById(R.id.recyclerview);\n        fastScroller = (FastScroller) findViewById(R.id.fastscroll);\n        recyclerView.setLayoutManager(new LinearLayoutManager(this));\n        recyclerView.setAdapter(adapter);\n\n        //has to be called AFTER RecyclerView.setAdapter()\n        fastScroller.setRecyclerView(recyclerView);\n```\n\nIn your `RecyclerView.Adapter`\n```java\n        public class MyAdapter ... implements SectionTitleProvider{\n            \n            ...\n            \n            @Override\n            public String getSectionTitle(int position) {\n                //this String will be shown in a bubble for specified position\n                return getItem(position).substring(0, 1);\n            }\n            \n        }\n```\n\n**Note**: You have to populate your adapter with enough items for the `FastScroll` to show. I has an auto-hide mechanism in case there is nothing to scroll.\n\n### Horizontal orientation\n\nYou can use this library with horizontal LayoutManager. To do it use android:orientation=\"horizontal\" attribute:\n\n```xml\n    \u003ccom.futuremind.recyclerviewfastscroll.FastScroller\n        android:id=\"@+id/fastscroll\"\n        android:orientation=\"horizontal\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"/\u003e\n```\n\n### Styling\n\nStyling was introduced in version 0.1.5 with a limited set of styleable attributes. More are on their way.\n\nYou can style the attributes in the xml layout:\n\n```xml\n    \u003ccom.futuremind.recyclerviewfastscroll.FastScroller\n           ...\n           app:fastscroll__handleColor=\"#8f93d1\"\n           app:fastscroll__bubbleColor=\"#5e64ce\"\n           app:fastscroll__bubbleTextAppearance=\"@style/StyledScrollerTextAppearance\"\n           /\u003e\n```\n\nOr directly in the code:\n\n```java\n         fastScroller.setBubbleColor(0xffff0000);\n         fastScroller.setHandleColor(0xffff0000);\n         fastScroller.setBubbleTextAppearance(R.style.StyledScrollerTextAppearance);\n```\n\nSee the example code for more info.\n\n### Custom views\n\nYou can set custom layouts and animations for your handle and bubble, using:\n\n```java\n        myViewProvider = new MyScrollerViewProvider();\n        fastScroller.setViewProvider(myViewProvider);\n```\n\nFor more information, consult [`CustomScrollerViewProvider`](/example/src/main/java/com/futuremind/recyclerviewfastscroll/example/customview/CustomScrollerViewProvider.java) in the example code.\n\n## Download\n\nDownload via Gradle:\n```groovy\ncompile 'com.futuremind.recyclerfastscroll:fastscroll:0.2.5'\n```\n\n## License\n\n    Copyright 2015 Future Mind\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuturemind%2Frecycler-fast-scroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuturemind%2Frecycler-fast-scroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuturemind%2Frecycler-fast-scroll/lists"}