Android vault add/edit/view button widths, padding, and background color adjusted.
This commit is contained in:
parent
9718e5aace
commit
c72b551e80
|
@ -117,6 +117,12 @@ namespace Bit.App.Controls
|
||||||
{
|
{
|
||||||
Button = new ExtendedButton();
|
Button = new ExtendedButton();
|
||||||
imageStackLayout.Children.Add(Button);
|
imageStackLayout.Children.Add(Button);
|
||||||
|
|
||||||
|
if(Device.OS == TargetPlatform.Android)
|
||||||
|
{
|
||||||
|
Button.Padding = new Thickness(0);
|
||||||
|
Button.BackgroundColor = Color.Transparent;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Tapped += FormEntryCell_Tapped;
|
Tapped += FormEntryCell_Tapped;
|
||||||
|
|
|
@ -84,16 +84,18 @@ namespace Bit.App.Controls
|
||||||
|
|
||||||
if(Device.OS == TargetPlatform.Android)
|
if(Device.OS == TargetPlatform.Android)
|
||||||
{
|
{
|
||||||
//if(Button1 != null)
|
buttonStackLayout.Spacing = 5;
|
||||||
//{
|
|
||||||
// Button1.Padding = new Thickness(5);
|
if(Button1 != null)
|
||||||
// Button1.BackgroundColor = Color.Transparent;
|
{
|
||||||
//}
|
Button1.Padding = new Thickness(0);
|
||||||
//if(Button2 != null)
|
Button1.BackgroundColor = Color.Transparent;
|
||||||
//{
|
}
|
||||||
// Button2.Padding = new Thickness(5);
|
if(Button2 != null)
|
||||||
// Button2.BackgroundColor = Color.Transparent;
|
{
|
||||||
//}
|
Button2.Padding = new Thickness(0);
|
||||||
|
Button2.BackgroundColor = Color.Transparent;
|
||||||
|
}
|
||||||
|
|
||||||
containerStackLayout.AdjustPaddingForDevice();
|
containerStackLayout.AdjustPaddingForDevice();
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,7 +87,7 @@ namespace Bit.App.Models.Page
|
||||||
{
|
{
|
||||||
return Device.GetNamedSize(NamedSize.Micro, typeof(Label));
|
return Device.GetNamedSize(NamedSize.Micro, typeof(Label));
|
||||||
}
|
}
|
||||||
else if(length > 15)
|
else if(length > 20)
|
||||||
{
|
{
|
||||||
return Device.GetNamedSize(NamedSize.Small, typeof(Label));
|
return Device.GetNamedSize(NamedSize.Small, typeof(Label));
|
||||||
}
|
}
|
||||||
|
|
|
@ -106,6 +106,10 @@ namespace Bit.App.Pages
|
||||||
table.RowHeight = -1;
|
table.RowHeight = -1;
|
||||||
table.EstimatedRowHeight = 70;
|
table.EstimatedRowHeight = 70;
|
||||||
}
|
}
|
||||||
|
else if(Device.OS == TargetPlatform.Android)
|
||||||
|
{
|
||||||
|
PasswordCell.Button.WidthRequest = 40;
|
||||||
|
}
|
||||||
|
|
||||||
var saveToolBarItem = new ToolbarItem(AppResources.Save, null, async () =>
|
var saveToolBarItem = new ToolbarItem(AppResources.Save, null, async () =>
|
||||||
{
|
{
|
||||||
|
|
|
@ -135,6 +135,10 @@ namespace Bit.App.Pages
|
||||||
table.RowHeight = -1;
|
table.RowHeight = -1;
|
||||||
table.EstimatedRowHeight = 70;
|
table.EstimatedRowHeight = 70;
|
||||||
}
|
}
|
||||||
|
else if(Device.OS == TargetPlatform.Android)
|
||||||
|
{
|
||||||
|
PasswordCell.Button.WidthRequest = 40;
|
||||||
|
}
|
||||||
|
|
||||||
var saveToolBarItem = new ToolbarItem(AppResources.Save, null, async () =>
|
var saveToolBarItem = new ToolbarItem(AppResources.Save, null, async () =>
|
||||||
{
|
{
|
||||||
|
|
|
@ -107,6 +107,13 @@ namespace Bit.App.Pages
|
||||||
Table.RowHeight = -1;
|
Table.RowHeight = -1;
|
||||||
Table.EstimatedRowHeight = 70;
|
Table.EstimatedRowHeight = 70;
|
||||||
}
|
}
|
||||||
|
else if(Device.OS == TargetPlatform.Android)
|
||||||
|
{
|
||||||
|
PasswordCell.Button1.WidthRequest = 40;
|
||||||
|
PasswordCell.Button2.WidthRequest = 55;
|
||||||
|
UsernameCell.Button1.WidthRequest = 55;
|
||||||
|
UriCell.Button1.WidthRequest = 71;
|
||||||
|
}
|
||||||
|
|
||||||
Title = "View Site";
|
Title = "View Site";
|
||||||
Content = Table;
|
Content = Table;
|
||||||
|
|
Loading…
Reference in New Issue