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

Not able to change the tagTextColor or tagBackgroundColor #13

Closed
nieldeokar opened this issue May 5, 2016 · 3 comments
Closed

Not able to change the tagTextColor or tagBackgroundColor #13

nieldeokar opened this issue May 5, 2016 · 3 comments

Comments

@nieldeokar
Copy link

All the provided methods are not working for changing the tag text color.

i tried using


 mTagContainerLayout.setTagBorderColor(Color.WHITE);

 mTagContainerLayout.setTagTextColor(Color.WHITE);

mTagContainerLayout.setTagBackgroundColor(Color.TRANSPARENT);

even i tried changing the default values.

 /** TagView border color(default #88F44336)*/
    private int mTagBorderColor = Color.WHITE;

    /** TagView background color(default #33F44336)*/
    private int mTagBackgroundColor =  Color.TRANSPARENT;

    /** TagView text color(default #FF666666)*/
    private int mTagTextColor =  Color.WHITE;

i am still getting the default background color for every tag.

Thanks!

@ravirupareliya
Copy link

ravirupareliya commented May 5, 2016

yes, in my case also setting it runtime is not working, don't know whether we need to call any other method after that to refresh view. But if you will set it from xml file it will work perfectly. Like this

app:container_background_color="#ff0000"

@nieldeokar
Copy link
Author

@ravirupareliya thanks! i even tried that. its working with container thing. but not with tag thing
i did this

app:tag_border_color="@color/white"
app:tag_background_color="@color/white"

@nieldeokar
Copy link
Author

after going through detailed documentation of Attributes found that

app:tag_theme="none"

this does the work! and it wasn't issue!

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

2 participants