Code Monkey home page Code Monkey logo

Comments (5)

kpmmmurphy avatar kpmmmurphy commented on May 22, 2024

I'll need some more detail on this. Can you post the code where you're invoking the Alerter please.

from alerter.

sergii-frost avatar sergii-frost commented on May 22, 2024

I had the same issue, it is happening on Android 4.x - 5.x

That is happening in case if you try to use .png as a drawable.

@liangweihao if you switch to .svg instead (Android Studio supports .svg for import as Vector Assets), and do a bit of additional setup in the project to be backwards compatible with Vector drawables, you will get it working.

Changes needed in project to work on older Android versions:

  1. build.gradle
defaultConfig {
    vectorDrawables.useSupportLibrary = true
}
  1. YourApp class (which extends Application)
//in onCreate() method
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);

from alerter.

sergii-frost avatar sergii-frost commented on May 22, 2024

@kpmmmurphy I have a question to you as well, please let me know if I should have a separate issue for it, but is it possible to change colour for the icon itself?

I have a need to have light background for the Alerter message, but icon is always white, even if I explicitly use coloured drawable resource.

from alerter.

sijojosep avatar sijojosep commented on May 22, 2024

I had the same issue .

NotFoundException for com.aitrich.android.orderpro
android.content.res.Resources$NotFoundException: File res/drawable-xxhdpi-v4/ic_map_marker_white_48dp.png from xml type xml resource ID #0x7f020102

from alerter.

kpmmmurphy avatar kpmmmurphy commented on May 22, 2024

I've updated this in version 2.0.1. @sergii-frost no support for this, but feel free to prepare a PR and I'll review it.

from alerter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.