Comments (5)
I'll need some more detail on this. Can you post the code where you're invoking the Alerter please.
from alerter.
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:
- build.gradle
defaultConfig {
vectorDrawables.useSupportLibrary = true
}
- YourApp class (which extends Application)
//in onCreate() method
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
from alerter.
@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.
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.
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)
- Jcenter is deprecated HOT 1
- Alerter not respecting larger status bars? HOT 1
- Support for moving out of Jcenter HOT 1
- ProgressBar icon is not visible HOT 2
- alerter hide not working when called in new activity HOT 3
- should be publish on mavenCenter HOT 5
- 按钮间距
- Update read me for correct jitpack dependency text HOT 4
- Bad Gateway HOT 2
- Maven repository status 403 HOT 1
- Import jar
- status bar is not overriden from alert HOT 1
- How to verify Expresso Test case for the Message we show in Alerter HOT 1
- Unable to implement library. HOT 2
- Keypad Related Issue
- Cannot import on android studio dolphin HOT 1
- Can't edit font size
- Black Icon appearing white
- 89 HOT 1
- ResourceNotFound Exception
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alerter.