'Is there any equivalent property to ButtonTintList in Xamarin.Forms Android API level 19
In API level 28 I am using BackgroundTintList property,but when using it in Anroid API level 19, getting exception.
Exception Detail: Java.Lang.NoSuchMethodError: no method with name='setButtonTintList' signature='(Landroid/content/res/ColorStateList;)V' in class Landroid/widget/CompoundButton;
Is there any equivalent property to ButtonTintList in Xamarin.Forms Android API level 19
Solution 1:[1]
You could use setColorFilter instead. It is used to specify a color and Porter-Duff mode to be the color filter for this drawable. This method was deprecated in API level 29.
setColorFilter:https://developer.android.com/reference/android/graphics/drawable/Drawable#setColorFilter(int,%20android.graphics.PorterDuff.Mode)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Wendy Zang - MSFT |
