Open nikoker opened 8 years ago
That's weird.
Are you using an AppCompat parent theme?
That attribute is from the AppCompat library. If you don't set an accent colour then the value from the theme should be used instead. I assume there is a default accent colour if you didn't set one, however I'm not sure what would happen if you are not using an AppCompat parent theme.
I don't use any theme at all and I haven't defined a pinAccentColor too. So that explains why I'm getting the error I guess.
I think you'll need in the very least to use an AppCompat theme for your activity or this library won't work.
Hello,
I am using the version 1.0.6 and I am getting the error "Caused by: java.lang.NoSuchFieldError: No static field colorAccent of type I in class Lme/philio/pinentry/R$attr; or its superclasses (declaration of 'me.philio.pinentry.R$attr' appears in something.apk"
Is this because in your PinEntryView.java class you are still using:
theme.resolveAttribute(attr.colorAccent, accentColor, true);
instead of pinAccentColor?