/tmp/appimage_extracted_00fbb87d198c41ca56a4432d5b9e5fa0/usr/bin/python3: /lib64/libc.so.6: version `GLIBC_2.27' not found (required by /tmp/appimage_extracted_00fbb87d198c41ca56a4432d5b9e5fa0/usr/bin/python3)
android.view.View, but we cannot make subclasses from the
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