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

Modify the color of an unselected indicator #65

Open
AsueG opened this issue Jun 29, 2020 · 0 comments
Open

Modify the color of an unselected indicator #65

AsueG opened this issue Jun 29, 2020 · 0 comments

Comments

@AsueG
Copy link

AsueG commented Jun 29, 2020

Hi,

I would like to modify the color of the indicator when it's unselected.

It's in this code (PagerIndicator) :

int resColor = ContextCompat.getColor(context, R.color.glide_slider_indicator_color);
        int r = Color.red(resColor);
        int g = Color.green(resColor);
        int b = Color.blue(resColor);
        int mDefaultSelectedColor = attributes.getColor(R.styleable.PagerIndicator_selected_color, Color.rgb(r, g, b));
        int mDefaultUnSelectedColor = attributes.getColor(R.styleable.PagerIndicator_unselected_color, Color.argb(33, r, g, b));

Can you add a value like glide_slider_unselected_indicator_color ?

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

No branches or pull requests

1 participant