Skip to content

Commit

Permalink
Fix Android Stepper sizing (#7327)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuarezruiz committed May 20, 2022
1 parent 9cfe038 commit d323b70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Core/src/Handlers/Stepper/StepperHandler.Android.cs
Expand Up @@ -28,10 +28,10 @@ protected override MauiStepper CreatePlatformView()
StepperHandlerManager.CreateStepperButtons(this, out _downButton, out _upButton);

if (_downButton != null)
stepperLayout.AddView(_downButton, new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WrapContent, ViewGroup.LayoutParams.MatchParent));
stepperLayout.AddView(_downButton, new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WrapContent, ViewGroup.LayoutParams.MatchParent, 1));

if (_upButton != null)
stepperLayout.AddView(_upButton, new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WrapContent, ViewGroup.LayoutParams.MatchParent));
stepperLayout.AddView(_upButton, new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WrapContent, ViewGroup.LayoutParams.MatchParent, 1));

return stepperLayout;
}
Expand Down
6 changes: 1 addition & 5 deletions src/Core/src/Platform/Android/MauiStepper.cs
@@ -1,9 +1,5 @@
using System;
using System.Collections.Generic;
using System.Text;
using Android.Content;
using Android.Content;
using Android.Widget;
using AndroidX.AppCompat.Widget;

namespace Microsoft.Maui.Platform
{
Expand Down

0 comments on commit d323b70

Please sign in to comment.