public override void OnConfigurationChanged(Android.Content.Res.Configuration newConfig) { base.OnConfigurationChanged(newConfig); Point displaySize = new Point( ); Activity.WindowManager.DefaultDisplay.GetSize(displaySize); NoteDiscGuideView.SetBounds(new System.Drawing.RectangleF(0, 0, displaySize.X, displaySize.Y)); }
public override void OnResume() { base.OnResume(); // update the layout AFTER loading resources, so the image can position correctly Point displaySize = new Point( ); Activity.WindowManager.DefaultDisplay.GetSize(displaySize); NoteDiscGuideView.SetBounds(new System.Drawing.RectangleF(0, 0, displaySize.X, displaySize.Y)); }
public override void TaskReadyForFragmentDisplay() { base.TaskReadyForFragmentDisplay(); // do not setup display if the task was ready but WE aren't. if (View != null) { // update the layout AFTER loading resources, so the image can position correctly Point displaySize = new Point( ); Activity.WindowManager.DefaultDisplay.GetSize(displaySize); NoteDiscGuideView.SetBounds(new System.Drawing.RectangleF(0, 0, displaySize.X, displaySize.Y)); } }