Sneaker icon indicating copy to clipboard operation
Sneaker copied to clipboard

Message Text always has a white background (see photo)

Open brspurri opened this issue 5 years ago • 1 comments

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

brspurri avatar Mar 14 '19 16:03 brspurri

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.

Hamadakram avatar Mar 18 '19 08:03 Hamadakram