Пример #1
0
        public static void SetState(Drawable marker, int stateBitset)
        {
            int[] states = new int[3];

            int index = 0;
            if ((stateBitset & 0x2) > 0) {
                states[index++] = 16842919;
            }
            if ((stateBitset & 0x1) > 0) {
                states[index++] = 16842913;
            }
            if ((stateBitset & 0x4) > 0) {
                states[index] = 16842908;
            }
            marker.SetState(states);
        }