Example #1
0
        private void SetTabIconColor(TabLayout.Tab tab, /*@ColorRes*/ int colorResId)
        {
            Drawable icon = tab.getIcon();

            if (icon != null)
            {
                icon.setColorFilter(ContextCompat.getColor(context, colorResId), PorterDuff.Mode.SRC_IN);
            }
        }
Example #2
0
            public override View getDropDownView(int position, View convertView, ViewGroup parent)
            {
                TextView view = (TextView)base.getDropDownView(position, convertView, parent);

                if (isEnabled(position))
                {
                    view.TextColor = ContextCompat.getColor(outerInstance.mActivity, android.R.color.primary_text_light);
                }
                else
                {
                    view.TextColor = ContextCompat.getColor(outerInstance.mActivity, android.R.color.secondary_text_dark);
                }

                return(view);
            }