示例#1
0
        public static bool UseGradients(this GradientDrawable gradientDrawable)
        {
            if (!NativeVersion.IsAtLeast(24))
            {
                return(false);
            }

            var colors = gradientDrawable.GetColors();

            return(colors != null && colors.Length > 1);
        }
示例#2
0
        public static bool UseGradients(this GradientDrawable gradientDrawable)
        {
            if (!Forms.IsNougatOrNewer)
            {
                return(false);
            }

            var colors = gradientDrawable.GetColors();

            return(colors != null && colors.Length > 1);
        }
示例#3
0
        public static bool UseGradients(this GradientDrawable gradientDrawable)
        {
            if (!OperatingSystem.IsAndroidVersionAtLeast(24))
            {
                return(false);
            }

            var colors = gradientDrawable.GetColors();

            return(colors != null && colors.Length > 1);
        }