private void InsertCell(LiquidFloatingCell cell) { var radius = Frame.Width * CellRadiusRatio; var offset = (Frame.Width - radius) / 2f; cell.Frame = new CGRect(offset, offset, radius, radius); cell.Color = Color; cell.ActionButton = this; InsertSubviewAbove(cell, baseView); }
protected internal virtual void OnCellSelected(LiquidFloatingCell target) { var handler = CellSelected; if (handler != null) { var cells = CellArray(); var index = Array.IndexOf(cells, target); handler(this, new CellSelectedEventArgs(target, index)); } }
public CellSelectedEventArgs(LiquidFloatingCell cell, int index) { Cell = cell; Index = index; }