private View BuildFabActionButton(ViewGroup.LayoutParams param, int padding, int icon)
        {
            var b1 = new FloatingActionButton(Activity)
            {
                LayoutParameters = param,
                Clickable        = true,
                Focusable        = true
            };

            b1.SetImageResource(icon);
            b1.ImageTintList      = ColorStateList.ValueOf(new Color(ResourceExtension.BrushText));
            b1.BackgroundTintList = ColorStateList.ValueOf(new Color(ResourceExtension.AccentColourDark));
            b1.SetPadding(padding, padding, padding, padding);
            b1.Tag    = icon;
            b1.Click += OnFloatingActionButtonOptionClick;
            return(b1);
        }
예제 #2
0
        private View BuildFabActionButton(ViewGroup.LayoutParams param, int icon)
        {
            var b1 = new FloatingActionButton(Activity)
            {
                LayoutParameters = param,
                Clickable        = true,
                Focusable        = true
            };

            b1.Size = FloatingActionButton.SizeMini;
            b1.SetScaleType(ImageView.ScaleType.Center);
            b1.SetImageResource(icon);
            b1.ImageTintList      = ColorStateList.ValueOf(new Color(255, 255, 255));
            b1.BackgroundTintList = ColorStateList.ValueOf(new Color(ResourceExtension.AccentColourContrast));
            b1.Tag    = icon;
            b1.Click += OnFloatingActionButtonOptionClick;
            return(b1);
        }