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

Message Text always has a white background (see photo) #32

Open
brspurri opened this issue Mar 14, 2019 · 1 comment
Open

Message Text always has a white background (see photo) #32

brspurri opened this issue Mar 14, 2019 · 1 comment

Comments

@brspurri
Copy link

Using the code:

Sneaker.with(this) // Activity, Fragment or ViewGroup
                    .setTitle("Warning!!")
                    .autoHide(false)
                    .setMessage("Please check your internet connection.", getResources().getColor(R.color.black, null))
                    .sneak(getResources().getColor(R.color.alert_yellow, null));

I always see a white background for the text. I've tried multiple OS versions, and all the same.
I have also tried using .sneakWarning(), which showed the same thing.

Is there any way to supply a transparent background for the text?

Screenshot_3_14_19__12_52_PM

@Hamadakram
Copy link
Owner

You app theme might be affecting the textview.
Also use R.color.black instead of getResources().getColor(R.color.black, null) to set color. Check documentation for further references.

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