Skip to content

Conversation

@goforbg
Copy link

@goforbg goforbg commented Apr 9, 2020

The quick fix around for changing the scrollbar color was to use an XML linking to a drawable. However, this couldn't be used as a solution in our case since the drawable XML wouldn't link to a dynamic color code that changes when the user changes the accent-color.

Hence I've created a custom recycler view class that overrides the default drawing of the scrollbar, changing it's color to the color set in settings by accessing "accent_color_preference" with the help of Hawk. Hope this fixes it.

@amarilindra
Copy link

CustomRecyclerView naming is generic. Changing the name to something meaningful is suggested.

LeafPicRecyclerView sounds nice and we can use it throughout the app for better customisation.

@dnldsht
Copy link
Member

dnldsht commented Apr 9, 2020

@Techydevil well done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants