|
|
@@ -116,6 +116,8 @@ namespace Avalonia.Android.Platform
|
|
|
{
|
|
|
CheckDisposed();
|
|
|
_view.Visibility = ViewStates.Gone;
|
|
|
+ _view.LayoutParameters = new ViewGroup.LayoutParams(Math.Max(1, (int)size.Width), Math.Max(1, (int)size.Height));
|
|
|
+ _view.RequestLayout();
|
|
|
}
|
|
|
|
|
|
public void ShowInBounds(Rect bounds)
|
|
|
@@ -126,7 +128,7 @@ namespace Avalonia.Android.Platform
|
|
|
|
|
|
bounds *= _attachedTo._avaloniaView.TopLevelImpl.RenderScaling;
|
|
|
_view.Visibility = ViewStates.Visible;
|
|
|
- _view.LayoutParameters = new FrameLayout.LayoutParams((int)bounds.Width, (int)bounds.Height)
|
|
|
+ _view.LayoutParameters = new ViewGroup.MarginLayoutParams(Math.Max(1, (int)bounds.Width), Math.Max(1, (int)bounds.Height))
|
|
|
{
|
|
|
LeftMargin = (int)bounds.X,
|
|
|
TopMargin = (int)bounds.Y
|