<NME> README.md
<BEF> # AlphabetIndex Fast Scroll RecyclerView
A Powerful AlphabetIndex FastScroller for Android's RecyclerView! 

 ![AlphabetIndex-Fast-Scroll-RecyclerView - Example1](https://raw.githubusercontent.com/myinnos/AlphabetIndex-Fast-Scroll-RecyclerView/0d6c4f2f0b9f3b573a4f2abf2c87b62237081286/images-gif/AlphabetIndex-Fast-Scroll-RecyclerView_1.gif)
 `` `` `` `` `` `` `` ``
  ![AlphabetIndex-Fast-Scroll-RecyclerView - Example2](https://raw.githubusercontent.com/myinnos/AlphabetIndex-Fast-Scroll-RecyclerView/0d6c4f2f0b9f3b573a4f2abf2c87b62237081286/images-gif/AlphabetIndex-Fast-Scroll-RecyclerView_2.gif)
 
#### Kindly use the following links to use this library:

In build.gradle (Project)
#### Kindly use the following links to use this library:

In build.gradle (Project)
```java
allprojects {
    repositories {
        ...
        maven { url "https://jitpack.io" }
    }
}
```
And 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.)
```java
dependencies {
    // AppCompat version
       implementation 'com.github.myinnos:AlphabetIndex-Fast-Scroll-RecyclerView:1.0.92'
	or
    // AndroidX version
       implementation 'com.github.myinnos:AlphabetIndex-Fast-Scroll-RecyclerView:1.0.95'
}
```          
How to use
-----
**Step 1:** add this to your xml:
```xml
<in.myinnos.alphabetsindexfastscrollrecycler.IndexFastScrollRecyclerView
    android:id="@+id/fast_scroller_recycler"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />
```
**Step 2:** implement SectionIndexer to RecyclerViewAdapter.
```java
public class RecyclerViewAdapter extends RecyclerView.Adapter<ViewHolder> implements SectionIndexer {

private List<String> mDataArray;
private ArrayList<Integer> mSectionPositions;
    
.....
    
@Override
public int getSectionForPosition(int position) {
    return 0;
}
 
@Override
public Object[] getSections() {
    List<String> sections = new ArrayList<>(26);
    mSectionPositions = new ArrayList<>(26);
    for (int i = 0, size = mDataArray.size(); i < size; i++) {
        String section = String.valueOf(mDataArray.get(i).charAt(0)).toUpperCase();
        if (!sections.contains(section)) {
            sections.add(section);
            mSectionPositions.add(i);
        }
    }
    return sections.toArray(new String[0]);
}
 
@Override
public int getPositionForSection(int sectionIndex) {
    return mSectionPositions.get(sectionIndex);
}
    
}
```
#### Note: mDataArray: this is your recycler data array model.

Features
-----
- Change IndexTextSize:
```java
 mRecyclerView.setIndexTextSize(12);
```
- Change IndexBarTextColor:
```java
 mRecyclerView.setIndexBarTextColor("#FFFFFF");

 mRecyclerView.setIndexBarTextColor(R.color.index_bar_text_color);
```
- Change IndexBarColor:
```java
 mRecyclerView.setIndexBarColor("#33334c");

 mRecyclerView.setIndexBarColor(R.color.index_bar_color);
```
- Change IndexBarCornerRadius:
```java
 mRecyclerView.setIndexBarCornerRadius(3);
```
- Change IndexBarTransparentValue:
```java
mRecyclerView.setIndexBarTransparentValue((float) 0.4);
```
- Change IndexbarMargin:
```java
 mRecyclerView.setIndexbarMargin(4);
```
- Change IndexbarWidth:
```java
 mRecyclerView.setIndexbarWidth(40);
```
- Change PreviewPadding:
```java
 mRecyclerView.setPreviewPadding(2);
```java
mRecyclerView.setIndexBarVisibility(true);
```
Compatibility
-----
This library works with any layout manager but is optimized for the use with a LinearLayoutManager.
- Change IndexBarHighLateTextColor:
```java
mRecyclerView.setIndexbarHighLightTextColor("#33334c);

mRecyclerView.setIndexbarHighLightTextColor(R.color.index_bar_highlight_text_color);
```
- To hide/show IndexBarHighLightText:
```java
mRecyclerView.setIndexBarHighLightTextVisibility(true);
```
- To hide/show IndexBarStroke:
```java
mRecyclerView.setIndexBarStrokeVisibility(true);
```
- Change IndexBarStrokeWidth:
```java
mRecyclerView.setIndexBarStrokeWidth(1);
```
- Change IndexBarStrokeColor:
```java
mRecyclerView.setIndexBarStrokeColor("#000000");
```

Compatibility
-----
This library works with any layout manager but is optimized for the use with a LinearLayoutManager.

##### Any Queries? or Feedback, please let me know by opening a [new issue](https://github.com/myinnos/AlphabetIndex-Fast-Scroll-RecyclerView/issues/new)!

## Contact
#### Prabhakar Thota
* :globe_with_meridians: Website: [myinnos.in](http://www.myinnos.in "Prabhakar Thota")
* :email: e-mail: contact@myinnos.in
* :mag_right: LinkedIn: [PrabhakarThota](https://www.linkedin.com/in/prabhakarthota "Prabhakar Thota on LinkedIn")
* :thumbsup: Twitter: [@myinnos](https://twitter.com/myinnos "Prabhakar Thota on twitter")   
* :camera: Instagram: [@prabhakar_t_](https://www.instagram.com/prabhakar_t_/ "Prabhakar Thota on Instagram")   

>⚡ 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)

### Contributing

Thanks to all the people who contributed to AlphabetIndex Fast Scroll RecyclerView

<a href="https://github.com/myinnos/AlphabetIndex-Fast-Scroll-RecyclerView/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=myinnos/AlphabetIndex-Fast-Scroll-RecyclerView" />
</a>
<!--- [@jonas-arkulpa](https://github.com/jonas-arkulpa "jonas-arkulpa")   
[@MFlisar](https://github.com/MFlisar "MFlisar")   
[@RaphaelMarion](https://github.com/RaphaelMarion "RaphaelMarion")   
[@appspell](https://github.com/appspell "appspell")   
[@Libernys](https://github.com/Libernys "Libernys")   
[@IvanAbacumov](https://github.com/IvanAbacumov "IvanAbacumov")   
[@benniebotha](https://github.com/benniebotha "benniebotha")
[@AbandonedCart](https://github.com/AbandonedCart "AbandonedCart")
[@Hamza417](https://github.com/Hamza417 "Hamza417") -->

License
-------

    Copyright 2017 - 2022 MyInnos

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

<MSG> Update README.md
<DFF> @@ -4,7 +4,9 @@ A Powerful AlphabetIndex FastScroller for Android's RecyclerView!
  ![AlphabetIndex-Fast-Scroll-RecyclerView - Example1](https://raw.githubusercontent.com/myinnos/AlphabetIndex-Fast-Scroll-RecyclerView/0d6c4f2f0b9f3b573a4f2abf2c87b62237081286/images-gif/AlphabetIndex-Fast-Scroll-RecyclerView_1.gif)
  `` `` `` `` `` `` `` ``
   ![AlphabetIndex-Fast-Scroll-RecyclerView - Example2](https://raw.githubusercontent.com/myinnos/AlphabetIndex-Fast-Scroll-RecyclerView/0d6c4f2f0b9f3b573a4f2abf2c87b62237081286/images-gif/AlphabetIndex-Fast-Scroll-RecyclerView_2.gif)
- 
+  `` `` `` `` `` `` `` ``
+  ![AlphabetIndex-Fast-Scroll-RecyclerView - Example3](https://raw.githubusercontent.com/myinnos/AlphabetIndex-Fast-Scroll-RecyclerView/master/images-gif/AlphabetIndex-Fast-Scroll-RecyclerView_3.gif)
+  
 #### Kindly use the following links to use this library:
 
 In build.gradle (Project)
@@ -115,6 +117,14 @@ mRecyclerView.setIndexBarTransparentValue((float) 0.4);
 ```java
 mRecyclerView.setIndexBarVisibility(true);
 ```
+- Change IndexBarHighLateTextColor:
+```java
+mRecyclerView.setIndexbarHighLateTextColor("#33334c);
+```
+- To hide/show IndexBarHighLateText:
+```java
+mRecyclerView.setIndexBarHighLateTextVisibility(true);
+```
 Compatibility
 -----
 This library works with any layout manager but is optimized for the use with a LinearLayoutManager.

{'commit': 'diff --git a/README.md b/README.md\nindex bd1cfc9..330fd6b 100644\n--- a/README.md\n+++ b/README.md\n@@ -4,7 +4,9 @@ A Powerful AlphabetIndex FastScroller for Android\'s RecyclerView!\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  `` `` `` `` `` `` `` ``\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- \n+  `` `` `` `` `` `` `` ``\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 \n In build.gradle (Project)\n@@ -115,6 +117,14 @@ mRecyclerView.setIndexBarTransparentValue((float) 0.4);\n ```java\n mRecyclerView.setIndexBarVisibility(true);\n ```\n+- Change IndexBarHighLateTextColor:\n+```java\n+mRecyclerView.setIndexbarHighLateTextColor("#33334c);\n+```\n+- To hide/show IndexBarHighLateText:\n+```java\n+mRecyclerView.setIndexBarHighLateTextVisibility(true);\n+```\n Compatibility\n -----\n This library works with any layout manager but is optimized for the use with a LinearLayoutManager.\n', 'commit_subject': 'Update README.md', 'repo_name': 'myinnos/AlphabetIndex-Fast-Scroll-RecyclerView', 'committer': {'name': 'GitHub', 'email': '1505422b2465e9a84f6fdfaa161078890c593f06@github.com', 'time_sec': '1500538461', 'tz_offset': '330', 'date': {'seconds': '1500538461'}}, 'commit_tree': '0abf8ca49536b69dfc11d68224c6a936becf01f8', 'commit_message': 'Update README.md', 'language_name': 'Kotlin', 'license': 'apache-2.0', 'hunks': '@@ -4,7 +4,9 @@ A Powerful AlphabetIndex FastScroller for Android\'s RecyclerView!\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  `` `` `` `` `` `` `` ``\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- \n+  `` `` `` `` `` `` `` ``\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 \n In build.gradle (Project)\n@@ -115,6 +117,14 @@ mRecyclerView.setIndexBarTransparentValue((float) 0.4);\n ```java\n mRecyclerView.setIndexBarVisibility(true);\n ```\n+- Change IndexBarHighLateTextColor:\n+```java\n+mRecyclerView.setIndexbarHighLateTextColor("#33334c);\n+```\n+- To hide/show IndexBarHighLateText:\n+```java\n+mRecyclerView.setIndexBarHighLateTextVisibility(true);\n+```\n Compatibility\n -----\n This library works with any layout manager but is optimized for the use with a LinearLayoutManager.\n', 'addition_count': 11, 'deletion_count': 1, 'src_file': 'a/README.md', 'tgt_file': 'b/README.md', 'file_extension': '.md', 'before_file': '# AlphabetIndex Fast Scroll RecyclerView\nA Powerful AlphabetIndex FastScroller for Android\'s RecyclerView! \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 `` `` `` `` `` `` `` ``\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 \n#### Kindly use the following links to use this library:\n\nIn build.gradle (Project)\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    // 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```          \nHow to use\n-----\n**Step 1:** add this to your xml:\n```xml\n<in.myinnos.alphabetsindexfastscrollrecycler.IndexFastScrollRecyclerView\n    android:id="@+id/fast_scroller_recycler"\n    android:layout_width="match_parent"\n    android:layout_height="match_parent" />\n```\n**Step 2:** implement SectionIndexer to RecyclerViewAdapter.\n```java\npublic class RecyclerViewAdapter extends RecyclerView.Adapter<ViewHolder> implements SectionIndexer {\n\nprivate List<String> mDataArray;\nprivate ArrayList<Integer> mSectionPositions;\n    \n.....\n    \n@Override\npublic int getSectionForPosition(int position) {\n    return 0;\n}\n \n@Override\npublic Object[] getSections() {\n    List<String> sections = new ArrayList<>(26);\n    mSectionPositions = new ArrayList<>(26);\n    for (int i = 0, size = mDataArray.size(); i < 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```java\nmRecyclerView.setIndexBarVisibility(true);\n```\nCompatibility\n-----\nThis library works with any layout manager but is optimized for the use with a LinearLayoutManager.\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>⚡ 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<a href="https://github.com/myinnos/AlphabetIndex-Fast-Scroll-RecyclerView/graphs/contributors">\n  <img src="https://contrib.rocks/image?repo=myinnos/AlphabetIndex-Fast-Scroll-RecyclerView" />\n</a>\n<!--- [@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 "IvanAbacumov")   \n[@benniebotha](https://github.com/benniebotha "benniebotha")\n[@AbandonedCart](https://github.com/AbandonedCart "AbandonedCart")\n[@Hamza417](https://github.com/Hamza417 "Hamza417") -->\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', 'message': 'Update README.md', 'author_name': 'GitHub', 'lang': 'md'}