1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-05 01:53:17 +00:00

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,17 +84,19 @@ 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();
}