Open almaz010891 opened 6 years ago
It's working just fine, check demo app.
I've tried all the ways to set the color. Checked on Android 6.0 and 7.0. Nothing works. I use implementation 'com.github.danimahardhika: cafebar: 1.3.1' , 1.3.2, 1.3.0
Check the demo app first Check another app using CafeBar too https://play.google.com/store/apps/details?id=com.lc.mywalls
in Demo app all ok, i use library project in my app, and this problem ONLY in my app. Its mystic...
Try to parse the color neutralColor(Color.parse("#ffca28")
.neutralColor, .buttonColor with R.color and Color.parseColor not working... I clean, rebuild, read Your docs. Code is all right... But color dont change. Maybe its depends on Activity theme or style?
I see this commit: https://github.com/danimahardhika/cafebar/commit/d652fedf49ebd46103759150e7b145ea35dea7a4
i use in my build.gradle compileOptions { targetCompatibility 1.8 sourceCompatibility 1.8 }
Maybe this is cause of problem?
No, It doesn't. This is strange, I will take a look into this issue.
By default (button color not set), neutral button text color should be the same with colorAccent
Thanks! I change to 1.7 and write to you about the result
Problem in compileOptions { targetCompatibility 1.8 sourceCompatibility 1.8 } if I delete this color is changed!
But I want to use 1.8 in my project, can You fix this issue?
I'm using Java 8 too, but with retrolambda, try with that.
Also reproduce with .neutralColor/.positiveColor and etc. library version 1.3.2 Code sample:
Result: