public View CreateTabContent(string tag) { var v = new View(_context); v.SetMinimumHeight(0); v.SetMinimumWidth(0); return v; }
public View CreateTabContent(string tag) { var view = new View(_generator.TabHost.Context); view.SetMinimumWidth(0); view.SetMinimumHeight(0); return view; }
protected void WireUpForceUpdateSizeRequested(Cell cell, AView nativeCell) { cell.ForceUpdateSizeRequested -= _onForceUpdateSizeRequested; _onForceUpdateSizeRequested = delegate { // RenderHeight may not be changed, but that's okay, since we // don't actually use the height argument in the OnMeasure override. nativeCell.Measure(nativeCell.Width, (int)cell.RenderHeight); nativeCell.SetMinimumHeight(nativeCell.MeasuredHeight); nativeCell.SetMinimumWidth(nativeCell.MeasuredWidth); }; cell.ForceUpdateSizeRequested += _onForceUpdateSizeRequested; }
protected void WireUpForceUpdateSizeRequested(Cell cell, AView nativeCell) { ICellController cellController = cell; cellController.ForceUpdateSizeRequested -= _onForceUpdateSizeRequested; _onForceUpdateSizeRequested = (sender, e) => { if (nativeCell.Handle == IntPtr.Zero) { return; } // RenderHeight may not be changed, but that's okay, since we // don't actually use the height argument in the OnMeasure override. nativeCell.Measure(nativeCell.Width, (int)cell.RenderHeight); nativeCell.SetMinimumHeight(nativeCell.MeasuredHeight); nativeCell.SetMinimumWidth(nativeCell.MeasuredWidth); }; cellController.ForceUpdateSizeRequested += _onForceUpdateSizeRequested; }
protected void WireUpForceUpdateSizeRequested(Cell cell, AView nativeCell) { cell.ForceUpdateSizeRequested -= _onForceUpdateSizeRequested; _onForceUpdateSizeRequested = delegate { // RenderHeight may not be changed, but that's okay, since we // don't actually use the height argument in the OnMeasure override. nativeCell.Measure(nativeCell.Width, (int)cell.RenderHeight); nativeCell.SetMinimumHeight(nativeCell.MeasuredHeight); nativeCell.SetMinimumWidth(nativeCell.MeasuredWidth); }; cell.ForceUpdateSizeRequested += _onForceUpdateSizeRequested; }