Android vault add/edit/view button widths, padding, and background color adjusted.

This commit is contained in:
Kyle Spearrin 2016-11-07 23:45:46 -05:00
parent 9718e5aace
commit c72b551e80
6 changed files with 35 additions and 12 deletions

View file

@ -117,6 +117,12 @@ namespace Bit.App.Controls
{
Button = new ExtendedButton();
imageStackLayout.Children.Add(Button);
if(Device.OS == TargetPlatform.Android)
{
Button.Padding = new Thickness(0);
Button.BackgroundColor = Color.Transparent;
}
}
Tapped += FormEntryCell_Tapped;

View file

@ -84,16 +84,18 @@ namespace Bit.App.Controls
if(Device.OS == TargetPlatform.Android)
{
//if(Button1 != null)
//{
// Button1.Padding = new Thickness(5);
// Button1.BackgroundColor = Color.Transparent;
//}
//if(Button2 != null)
//{
// Button2.Padding = new Thickness(5);
// Button2.BackgroundColor = Color.Transparent;
//}
buttonStackLayout.Spacing = 5;
if(Button1 != null)
{
Button1.Padding = new Thickness(0);
Button1.BackgroundColor = Color.Transparent;
}
if(Button2 != null)
{
Button2.Padding = new Thickness(0);
Button2.BackgroundColor = Color.Transparent;
}
containerStackLayout.AdjustPaddingForDevice();
}

View file

@ -87,7 +87,7 @@ namespace Bit.App.Models.Page
{
return Device.GetNamedSize(NamedSize.Micro, typeof(Label));
}
else if(length > 15)
else if(length > 20)
{
return Device.GetNamedSize(NamedSize.Small, typeof(Label));
}

View file

@ -106,6 +106,10 @@ namespace Bit.App.Pages
table.RowHeight = -1;
table.EstimatedRowHeight = 70;
}
else if(Device.OS == TargetPlatform.Android)
{
PasswordCell.Button.WidthRequest = 40;
}
var saveToolBarItem = new ToolbarItem(AppResources.Save, null, async () =>
{

View file

@ -135,6 +135,10 @@ namespace Bit.App.Pages
table.RowHeight = -1;
table.EstimatedRowHeight = 70;
}
else if(Device.OS == TargetPlatform.Android)
{
PasswordCell.Button.WidthRequest = 40;
}
var saveToolBarItem = new ToolbarItem(AppResources.Save, null, async () =>
{

View file

@ -107,6 +107,13 @@ namespace Bit.App.Pages
Table.RowHeight = -1;
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";
Content = Table;