private void LinearLayout_LayoutChange(object sender, View.LayoutChangeEventArgs e) { var gauge = (sender as LinearLayout).GetChildAt(0) as SfCircularGauge; if (gauge == null) { return; } var minSize = Math.Min(gauge.Width, gauge.Height); var radius = (float)minSize / 2; var scale = gauge.CircularScales[0]; if (scale != null) { float pointerSize = (float)(radius * Math.Abs(scale.ScaleStartOffset - scale.ScaleEndOffset)); pointerSize /= deviceDensity; foreach (MarkerPointer pointer in scale.CircularPointers) { if (pointer.MarkerHeight != pointerSize) { pointer.MarkerHeight = pointerSize; } if (pointer.MarkerWidth != pointerSize) { pointer.MarkerWidth = pointerSize; } } } }
void View_LayoutChange(object sender, View.LayoutChangeEventArgs e) { var height = GetImageHeight(imageview3, view.Width / 3); imageview3.LayoutParameters = new TableRow.LayoutParams((int)view.Width / 3, (int)height); imageview4.LayoutParameters = new TableRow.LayoutParams((int)view.Width / 3, (int)height); imageview5.LayoutParameters = new TableRow.LayoutParams((int)view.Width / 3, (int)height); }
//#################################################################################### private void Parent_LayoutChange(object sender, View.LayoutChangeEventArgs e) { int width = e.Right - e.Left; if (width > 0) { UpdatePreviewRatio(); } }
private static void ViewOnLayoutChange(object sender, View.LayoutChangeEventArgs layoutChangeEventArgs) { var group = ((ViewGroup)sender); if (Collection.ContainsKey(group)) { Collection[group].OverlayView.Right = group.Width; Collection[group].OverlayView.Bottom = group.Height; } }
private void ViewPagerLayotChange(object sender, View.LayoutChangeEventArgs e) { var styledAttributes = this.Theme.ObtainStyledAttributes(new int[] { Android.Resource.Attribute.ActionBarSize, Android.Resource.Attribute.ActionBarStyle }); var mActionBarSize = (int)styledAttributes.GetDimension(0, 0); styledAttributes.Recycle(); rootLayout.SetPadding(0, mActionBarSize, 0, 0); SetViewPagerMargin(); }
private void ViewOnLayoutChange(object sender, View.LayoutChangeEventArgs layoutChangeEventArgs) { var group = (ViewGroup)sender; if (group == null || IsDisposed) { return; } viewOverlay.Right = group.Width; viewOverlay.Bottom = group.Height; }
private void OnViewLayoutChanged(object sender, View.LayoutChangeEventArgs layoutChangeEventArgs) { var group = (ViewGroup)sender; if (group == null || IsDisposed) { return; } overlayAnimation.Right = group.Width; overlayAnimation.Bottom = group.Height; }
public void OnLayoutChange(Object sender, View.LayoutChangeEventArgs arg) { int width = arg.Right - arg.Left; int height = arg.Bottom - arg.Top; if (width == 0 || height == 0) { return; } int oldWidth = arg.OldRight - arg.OldLeft; int oldHeight = arg.OldBottom - arg.OldTop; if (oldWidth != width || oldHeight != height) { LoadMap(); } }
private void onSelectProjectToolbarButtonLayoutChanged(object sender, View.LayoutChangeEventArgs changeEventArgs) { selectProjectToolbarButton.Post(setupStartTimeEntryOnboardingStep); }
private void Layout_LayoutChange1(object sender, View.LayoutChangeEventArgs e) { var layout = sender as LinearLayout; if (childGrid != null && childGrid.ChildCount > 0 && previousWidth == layout.Width && previousHeight == layout.Height) { return; } if (layout != null) { InitializeChildGrid(); if (layout.Height > 0) { double row = layout.Height / 512; if (Math.Ceiling(row) <= 0) { row = 1; } else { row = Math.Ceiling(row); } rowCount = (int)row + 1; previousHeight = layout.Height; } if (layout.Width > 0) { double column = layout.Width / 512; if (Math.Ceiling(column) <= 0) { column = 1; } else { column = Math.Ceiling(column); } columnCount = (int)column + 1; previousWidth = layout.Width; } for (int i = 0; i < rowCount; i++) { for (int j = 0; j < columnCount; j++) { ImageView image = new ImageView(sampleContext); image.SetImageResource(Resource.Drawable.grid); image.SetMinimumHeight((int)(512 * density)); image.SetMinimumWidth((int)(512 * density)); image.LayoutParameters = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent); image.LayoutParameters.Height = (int)(512 * density); image.LayoutParameters.Width = (int)(512 * density); image.SetPadding(0, 0, 0, 0); image.SetX(i * (512 * density)); image.SetY(j * (512 * density)); childGrid.AddView(image); } } childGrid.SetClipChildren(false); } }
void DecorViewLayoutChange(object?sender, View.LayoutChangeEventArgs e) { HandleUIChange(); Invalidate(); }
private void _viewPager_LayoutChange(object sender, View.LayoutChangeEventArgs e) { Log.Debug(TAG, "_viewPager_LayoutChange"); }
static void View_LayoutChange(object sender, View.LayoutChangeEventArgs e) { var view = (View)sender; TernaryThenCollect(view.WindowToken); }
void CustomOverlayScanAreaView_LayoutChange(object sender, View.LayoutChangeEventArgs e) { needRecalculateDecodingVariables = true; }
void _list_LayoutChange(object sender, View.LayoutChangeEventArgs e) { SetListViewSize(_list); }
void OnLayoutChanged(object?sender, View.LayoutChangeEventArgs e) { VirtualView.Arrange(e); }
void OnLayoutChange(object sender, View.LayoutChangeEventArgs e) { AttachFab(); }