{"id":13642814,"url":"https://github.com/myinnos/AlphabetIndex-Fast-Scroll-RecyclerView","last_synced_at":"2025-04-20T21:31:36.019Z","repository":{"id":16828299,"uuid":"80713365","full_name":"myinnos/AlphabetIndex-Fast-Scroll-RecyclerView","owner":"myinnos","description":"A Powerful AlphabetIndex FastScroller Library for Android's RecyclerView! ","archived":false,"fork":false,"pushed_at":"2023-04-21T07:26:31.000Z","size":2014,"stargazers_count":599,"open_issues_count":34,"forks_count":114,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-08-02T01:17:19.759Z","etag":null,"topics":["alphabetindex-fastscroller","android","android-recyclerview","indexing","kotlin","recyclerview"],"latest_commit_sha":null,"homepage":"https://myinnos.github.io/AlphabetIndex-Fast-Scroll-RecyclerView/","language":"Kotlin","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/myinnos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":["myinnos"],"custom":["https://www.buymeacoffee.com/myinnos"]}},"created_at":"2017-02-02T10:08:27.000Z","updated_at":"2024-07-10T00:42:06.000Z","dependencies_parsed_at":"2023-01-11T19:27:02.128Z","dependency_job_id":"4b3efc3a-a1e0-4698-ba21-f67ca5bf4645","html_url":"https://github.com/myinnos/AlphabetIndex-Fast-Scroll-RecyclerView","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myinnos%2FAlphabetIndex-Fast-Scroll-RecyclerView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myinnos%2FAlphabetIndex-Fast-Scroll-RecyclerView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myinnos%2FAlphabetIndex-Fast-Scroll-RecyclerView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myinnos%2FAlphabetIndex-Fast-Scroll-RecyclerView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myinnos","download_url":"https://codeload.github.com/myinnos/AlphabetIndex-Fast-Scroll-RecyclerView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223839033,"owners_count":17211864,"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":["alphabetindex-fastscroller","android","android-recyclerview","indexing","kotlin","recyclerview"],"created_at":"2024-08-02T01:01:36.607Z","updated_at":"2024-11-09T14:30:46.344Z","avatar_url":"https://github.com/myinnos.png","language":"Kotlin","funding_links":["https://github.com/sponsors/myinnos","https://www.buymeacoffee.com/myinnos","https://www.paypal.me/fansfolio"],"categories":["RecyclerView"],"sub_categories":[],"readme":"# AlphabetIndex Fast Scroll RecyclerView\nA Powerful AlphabetIndex FastScroller for Android's RecyclerView! \n\n[![](https://jitpack.io/v/myinnos/AlphabetIndex-Fast-Scroll-RecyclerView.svg)](https://jitpack.io/#myinnos/AlphabetIndex-Fast-Scroll-RecyclerView) [![MyInnos website](https://img.shields.io/badge/visit-website-red.svg?logo=firefox)](https://www.myinnos.in/) [![](https://jitpack.io/v/jitpack/maven-simple/month.svg)](https://jitpack.io/#myinnos/AlphabetIndex-Fast-Scroll-RecyclerView) \u003ca href=\"#\"\u003e\u003cimg alt=\"Android Language Badge\" src=\"https://badgen.net/badge/OS/Android?icon=https://raw.githubusercontent.com/androiddevnotes/awesome-jetpack-compose-android-apps/master/assets/android.svg\u0026color=3ddc84\"/\u003e\u003c/a\u003e\n\n\n  ![AlphabetIndex-Fast-Scroll-RecyclerView - Example1](https://raw.githubusercontent.com/myinnos/AlphabetIndex-Fast-Scroll-RecyclerView/0d6c4f2f0b9f3b573a4f2abf2c87b62237081286/images-gif/AlphabetIndex-Fast-Scroll-RecyclerView_1.gif)\n  ![AlphabetIndex-Fast-Scroll-RecyclerView - Example2](https://raw.githubusercontent.com/myinnos/AlphabetIndex-Fast-Scroll-RecyclerView/0d6c4f2f0b9f3b573a4f2abf2c87b62237081286/images-gif/AlphabetIndex-Fast-Scroll-RecyclerView_2.gif)\n  ![AlphabetIndex-Fast-Scroll-RecyclerView - Example3](https://raw.githubusercontent.com/myinnos/AlphabetIndex-Fast-Scroll-RecyclerView/master/images-gif/AlphabetIndex-Fast-Scroll-RecyclerView_3.gif)\n  \n#### Kindly use the following links to use this library:\n\nIn build.gradle (Project)\n```java\nallprojects {\n    repositories {\n        ...\n        maven { url \"https://jitpack.io\" }\n    }\n}\n```\nAnd then in the other gradle file(may be your app gradle or your own module library gradle, but never add in both of them to avoid conflict.)\n```java\ndependencies {\n       implementation 'com.github.myinnos:AlphabetIndex-Fast-Scroll-RecyclerView:2.0'\n\n    // AppCompat version\n    // implementation 'com.github.myinnos:AlphabetIndex-Fast-Scroll-RecyclerView:1.0.92'\n    //\tor\n    // AndroidX version\n    // implementation 'com.github.myinnos:AlphabetIndex-Fast-Scroll-RecyclerView:1.0.95'\n\n}\n```          \nHow to use\n-----\n**Step 1:** add this to your xml:\n```xml\n\u003cin.myinnos.alphabetsindexfastscrollrecycler.IndexFastScrollRecyclerView\n    android:id=\"@+id/fast_scroller_recycler\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\" /\u003e\n```\n**Step 2:** implement SectionIndexer to RecyclerViewAdapter.\n```java\npublic class RecyclerViewAdapter extends RecyclerView.Adapter\u003cViewHolder\u003e implements SectionIndexer {\n\nprivate List\u003cString\u003e mDataArray;\nprivate ArrayList\u003cInteger\u003e mSectionPositions;\n    \n.....\n    \n@Override\npublic int getSectionForPosition(int position) {\n    return 0;\n}\n \n@Override\npublic Object[] getSections() {\n    List\u003cString\u003e sections = new ArrayList\u003c\u003e(26);\n    mSectionPositions = new ArrayList\u003c\u003e(26);\n    for (int i = 0, size = mDataArray.size(); i \u003c size; i++) {\n        String section = String.valueOf(mDataArray.get(i).charAt(0)).toUpperCase();\n        if (!sections.contains(section)) {\n            sections.add(section);\n            mSectionPositions.add(i);\n        }\n    }\n    return sections.toArray(new String[0]);\n}\n \n@Override\npublic int getPositionForSection(int sectionIndex) {\n    return mSectionPositions.get(sectionIndex);\n}\n    \n}\n```\n#### Note: mDataArray: this is your recycler data array model.\n\nFeatures\n-----\n- Change IndexTextSize:\n```java\n mRecyclerView.setIndexTextSize(12);\n```\n- Change IndexBarTextColor:\n```java\n mRecyclerView.setIndexBarTextColor(\"#FFFFFF\");\n\n mRecyclerView.setIndexBarTextColor(R.color.index_bar_text_color);\n```\n- Change IndexBarColor:\n```java\n mRecyclerView.setIndexBarColor(\"#33334c\");\n\n mRecyclerView.setIndexBarColor(R.color.index_bar_color);\n```\n- Change IndexBarCornerRadius:\n```java\n mRecyclerView.setIndexBarCornerRadius(3);\n```\n- Change IndexBarTransparentValue:\n```java\nmRecyclerView.setIndexBarTransparentValue((float) 0.4);\n```\n- Change IndexBarMargin:\n```java\n mRecyclerView.setIndexBarMargin(4);\n```\n- Change IndexBarWidth:\n```java\n mRecyclerView.setIndexBarWidth(40);\n```\n- Change PreviewPadding:\n```java\n mRecyclerView.setPreviewPadding(2);\n```\n- Change PreviewVisibility:\n```java\n mRecyclerView.setPreviewVisibility(false);\n```\n- Change Typeface:\n```java\n Typeface typeface = Typeface.createFromAsset(context.getAssets(), \"Custom-Font.ttf\");\n mRecyclerView.setTypeface(typeface);\n```\n- To hide/show Fast Scroll IndexBar:\n```java\nmRecyclerView.setIndexBarVisibility(true);\n```\n- Change IndexBarHighLateTextColor:\n```java\nmRecyclerView.setIndexBarHighLightTextColor(\"#33334c);\n\nmRecyclerView.setIndexBarHighLightTextColor(R.color.index_bar_highlight_text_color);\n```\n- To hide/show IndexBarHighLightText:\n```java\nmRecyclerView.setIndexBarHighLightTextVisibility(true);\n```\n- To hide/show IndexBarStroke:\n```java\nmRecyclerView.setIndexBarStrokeVisibility(true);\n```\n- Change IndexBarStrokeWidth:\n```java\nmRecyclerView.setIndexBarStrokeWidth(1);\n```\n- Change IndexBarStrokeColor:\n```java\nmRecyclerView.setIndexBarStrokeColor(\"#000000\");\n```\n\nCompatibility\n-----\nThis library works with any layout manager but is optimized for the use with a LinearLayoutManager.\n\n##### Any Queries? or Feedback, please let me know by opening a [new issue](https://github.com/myinnos/AlphabetIndex-Fast-Scroll-RecyclerView/issues/new)!\n\n## Contact\n#### Prabhakar Thota\n* :globe_with_meridians: Website: [myinnos.in](http://www.myinnos.in \"Prabhakar Thota\")\n* :email: e-mail: contact@myinnos.in\n* :mag_right: LinkedIn: [PrabhakarThota](https://www.linkedin.com/in/prabhakarthota \"Prabhakar Thota on LinkedIn\")\n* :thumbsup: Twitter: [@myinnos](https://twitter.com/myinnos \"Prabhakar Thota on twitter\")   \n* :camera: Instagram: [@prabhakar_t_](https://www.instagram.com/prabhakar_t_/ \"Prabhakar Thota on Instagram\")   \n\n\u003e⚡ If you appreciate my work, consider buying me a cup of :coffee: to keep me recharged :metal: by [GitHub](https://github.com/sponsors/myinnos) or [PayPal](https://www.paypal.me/fansfolio)\n\n### Contributing\n\nThanks to all the people who contributed to AlphabetIndex Fast Scroll RecyclerView\n\n\u003ca href=\"https://github.com/myinnos/AlphabetIndex-Fast-Scroll-RecyclerView/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=myinnos/AlphabetIndex-Fast-Scroll-RecyclerView\" /\u003e\n\u003c/a\u003e\n\u003c!--- [@jonas-arkulpa](https://github.com/jonas-arkulpa \"jonas-arkulpa\")   \n[@MFlisar](https://github.com/MFlisar \"MFlisar\")   \n[@RaphaelMarion](https://github.com/RaphaelMarion \"RaphaelMarion\")   \n[@appspell](https://github.com/appspell \"appspell\")   \n[@Libernys](https://github.com/Libernys \"Libernys\")   \n[@IvanAbacumov](https://github.com/IvanAbacumov \"IvanAbakumov\")   \n[@benniebotha](https://github.com/benniebotha \"benniebotha\")\n[@AbandonedCart](https://github.com/AbandonedCart \"AbandonedCart\")\n[@Hamza417](https://github.com/Hamza417 \"Hamza417\") --\u003e\n\nLicense\n-------\n\n    Copyright 2017 - 2022 MyInnos\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyinnos%2FAlphabetIndex-Fast-Scroll-RecyclerView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyinnos%2FAlphabetIndex-Fast-Scroll-RecyclerView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyinnos%2FAlphabetIndex-Fast-Scroll-RecyclerView/lists"}