Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertical scroll bar color changing #23

Closed
Surakshaajith opened this issue Jun 2, 2020 · 2 comments
Closed

Vertical scroll bar color changing #23

Surakshaajith opened this issue Jun 2, 2020 · 2 comments
Labels
enhancement New feature or request released released already the last version

Comments

@Surakshaajith
Copy link

Is your feature request related to a problem? Yes

I have added a vertical scroll bar to dropdown using this new release . I know the fact that Recycler view has it's limitation.

Is there any other way to add the dropdown vertical bar color? Please help.

@skydoves skydoves added the enhancement New feature or request label Jun 6, 2020
@skydoves
Copy link
Owner

skydoves commented Jun 9, 2020

It seems to need a new XML file that containing a customized RecyclerView for fully customizing popup. I will consider to APIs of this issue.

@skydoves skydoves added the Release Next This feature will be released on next version label May 5, 2022
@skydoves
Copy link
Owner

skydoves commented May 6, 2022

Sorry for the late response. Since version 1.2.1, you can custom the color of the scrollbar by adding the attribute below in your color.xml file:

<color name="powerspinner_scrollbar">YOUR_CUSTOM_COLOR</color>

Also, you can custom the style of the scrollbar by adding the style below in your styles.xml file:

  <style name="PowerSpinnerStyle">
    <item name="android:scrollbarAlwaysDrawVerticalTrack">true</item>
    <item name="android:scrollbars">vertical</item>
    <item name="android:fadeScrollbars">true</item>
    <item name="android:scrollbarThumbVertical">@drawable/powerspinner_scrollbar</item>
  </style>

Thank you!

@skydoves skydoves closed this as completed May 6, 2022
@skydoves skydoves added released released already the last version and removed Release Next This feature will be released on next version labels May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released released already the last version
Projects
None yet
Development

No branches or pull requests

2 participants