Esempio n. 1
0
        protected override ColorStateList GetColorStateList()
        {
            if (Element.Color != Color.Default)
            {
                return(base.GetColorStateList());
            }

            int[] checkBoxColorsList = new int[4];
            checkBoxColorsList[0] = MaterialColors.GetCheckBoxColor(true, true);
            checkBoxColorsList[1] = MaterialColors.GetCheckBoxColor(false, true);
            checkBoxColorsList[2] = MaterialColors.GetCheckBoxColor(true, false);
            checkBoxColorsList[3] = MaterialColors.GetCheckBoxColor(false, false);

            return(new ColorStateList(_checkedStates, checkBoxColorsList));
        }