mirror of
https://github.com/bitwarden/mobile
synced 2025-12-27 13:43:32 +00:00
Android UI updates.
This commit is contained in:
@@ -42,6 +42,8 @@ namespace Bit.App.Controls
|
||||
set { SetValue(DisclousureImageProperty, value); }
|
||||
}
|
||||
|
||||
public LineBreakMode DetailLineBreakMode { get; set; } = LineBreakMode.TailTruncation;
|
||||
|
||||
public event EventHandler DisclousureTapped;
|
||||
|
||||
public void OnDisclousureTapped()
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace Bit.App.Controls
|
||||
{
|
||||
if(!useLabelAsPlaceholder)
|
||||
{
|
||||
Entry.Margin = new Thickness(-11, 0, -11, -5);
|
||||
Entry.Margin = new Thickness(-4, -7, -4, -11);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,10 @@ namespace Bit.App.Controls
|
||||
HorizontalOptions = LayoutOptions.StartAndExpand,
|
||||
VerticalOptions = LayoutOptions.CenterAndExpand,
|
||||
Children = { Label, Detail },
|
||||
Padding = new Thickness(15, 5, 5, 5),
|
||||
Padding = Device.OnPlatform(
|
||||
iOS: new Thickness(15, 5, 5, 5),
|
||||
Android: new Thickness(15, 0, 5, 5),
|
||||
WinPhone: new Thickness(15, 5, 5, 5)),
|
||||
Spacing = 0
|
||||
};
|
||||
|
||||
|
||||
@@ -41,9 +41,17 @@ namespace Bit.App.Controls
|
||||
Orientation = StackOrientation.Horizontal,
|
||||
Children = { Label, StepperValueLabel, Stepper },
|
||||
Spacing = 15,
|
||||
Padding = new Thickness(15, 8)
|
||||
Padding = Device.OnPlatform(
|
||||
iOS: new Thickness(15, 8),
|
||||
Android: new Thickness(15, 2),
|
||||
WinPhone: new Thickness(15, 8))
|
||||
};
|
||||
|
||||
if(Device.OS == TargetPlatform.Android)
|
||||
{
|
||||
Label.TextColor = Color.Black;
|
||||
}
|
||||
|
||||
View = stackLayout;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user