Hello everybody, I'm trying to implement setting the background color of a Button on Android. For this, I'm trying the following code:
def set_background_color(self, value): if value: PorterDuff = JavaClass("android/graphics/PorterDuff") bg = self.native.getBackground() bg.setColorFilter(native_color(value), PorterDuff.Mode.MULTIPLY)
But I get following error message:
2021-03-23 06:51:55.991 16930-16930/org.beeware.button E/Python: AttributeError: Java class 'b'android/graphics/PorterDuff'' has no attribute 'Mode'
Mode is a enum - why do I get this error message?
I also tried to pass the integer value instead of MULTIPLY, but then I get the error that setColor(int, int) does not exist
[helloworld] Generating application template...
Using app template: https://github.com/beeware/briefcase-windows-msi-template.git, branch 3.9
Template does not support 3.9
Recieved this error when running briefcase create and briefcase run, how to fix?