I have one project which is running perfectly for TargetSDK Version 21 but when I Switch to the Version 23 some weird error occur during Changing the Background Color of Dynamic Button.
- Example, below screenshot Refer to the version 23
Example, below screenshot Refer to the version 21
textArray[selection].setBackgroundColor(getResources().getColor( R.color.blue)); textArray[selection].setTextColor(getResources().getColor(R.color.white));
I am Using these two lines to change background color and textcolor for button.
Note:- Both times the Code to set Backgroundcolor is same.
Thank you in advance.