Tapadoo / Alerter

An Android Alerting Library
MIT License
5.52k stars 632 forks source link

Black Icon appearing white #290

Closed JesusFVelez closed 11 months ago

JesusFVelez commented 11 months ago

I have an SVG icon that I am using to present the Alerter and it is appearing white when it is supposed to be black

fun startWarningAlerter(activity: Activity, warningMessage:String){ Alerter.create(activity) .setTitle("Warning") .setText("${warningMessage} \n \nTap to dismiss.") .setIcon(R.drawable.black_warning_icon) .setBackgroundColorRes(R.color.warning_yellow) .setTextAppearance(R.style.WarningText) .setTitleAppearance(R.style.WarningText) .enableInfiniteDuration(true) .show() }

here is the code I am using to call the alerter and here is the SVG code for the icon

<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="97dp" android:height="94dp" android:viewportWidth="97" android:viewportHeight="94"> <path android:pathData="M52.073,9.917C50.674,7.355 46.326,7.355 44.927,9.917L8.552,76.5C8.225,77.097 8.062,77.766 8.081,78.441C8.1,79.117 8.299,79.777 8.658,80.356C9.018,80.935 9.527,81.413 10.134,81.745C10.742,82.077 11.428,82.251 12.125,82.25H84.875C85.572,82.251 86.257,82.078 86.865,81.746C87.472,81.414 87.98,80.936 88.339,80.357C88.699,79.778 88.897,79.119 88.916,78.444C88.934,77.769 88.771,77.1 88.444,76.504L52.073,9.917ZM52.542,70.5 IMG_8449 H44.458V62.667H52.542V70.5ZM44.458,54.833V35.25H52.542L52.546,54.833H44.458Z" android:fillColor="#000000"/> IMG_8449

I also included an image of the alerter being shown