You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
android.content.res.Resources$NotFoundException: Resource ID #0xffd4e157 return when I give it a valid colour, what values are we supposed to use when changing it programatically?
I see you have called it like this:
public void setBackgroundColors(int bgColorRes, int bgPressedColorRes) {
this.backgroundColorPressed = this.getResources().getColor(bgPressedColorRes);
this.backgroundColor = this.getResources().getColor(bgColorRes);
this.updateColors();
}
Why is it not just:
public void setBackgroundColors(int bgColorRes, int bgPressedColorRes) {
this.backgroundColorPressed = bgPressedColorRes;
this.backgroundColor = bgColorRes;
this.updateColors();
}
Perhaps I am missing some logic? I could just be very confused. Please help and give an example, thank you very much. Love the library
The text was updated successfully, but these errors were encountered:
android.content.res.Resources$NotFoundException: Resource ID #0xffd4e157 return when I give it a valid colour, what values are we supposed to use when changing it programatically?
I see you have called it like this:
public void setBackgroundColors(int bgColorRes, int bgPressedColorRes) {
this.backgroundColorPressed = this.getResources().getColor(bgPressedColorRes);
this.backgroundColor = this.getResources().getColor(bgColorRes);
this.updateColors();
}
Why is it not just:
public void setBackgroundColors(int bgColorRes, int bgPressedColorRes) {
this.backgroundColorPressed = bgPressedColorRes;
this.backgroundColor = bgColorRes;
this.updateColors();
}
Perhaps I am missing some logic? I could just be very confused. Please help and give an example, thank you very much. Love the library
The text was updated successfully, but these errors were encountered: