mirror of
https://github.com/bitwarden/mobile
synced 2026-01-04 17:43:17 +00:00
android adjustments
This commit is contained in:
@@ -10,7 +10,6 @@ using Bit.App.Resources;
|
||||
using Xamarin.Forms;
|
||||
using XLabs.Ioc;
|
||||
using Bit.App.Utilities;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Bit.App.Pages
|
||||
{
|
||||
@@ -44,13 +43,16 @@ namespace Bit.App.Pages
|
||||
|
||||
var listView = new ListView
|
||||
{
|
||||
Margin = new Thickness(0, 0, -15, 0),
|
||||
IsGroupingEnabled = true,
|
||||
ItemsSource = Folders,
|
||||
HasUnevenRows = true,
|
||||
GroupHeaderTemplate = new DataTemplate(() => new VaultListHeaderViewCell(this)),
|
||||
ItemTemplate = new DataTemplate(() => new VaultListViewCell(this))
|
||||
};
|
||||
if(Device.OS == TargetPlatform.iOS)
|
||||
{
|
||||
listView.Margin = new Thickness(0, 0, -15, 0);
|
||||
}
|
||||
listView.ItemSelected += SiteSelected;
|
||||
|
||||
Title = _favorites ? AppResources.Favorites : AppResources.MyVault;
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace Bit.App.Pages
|
||||
ToolbarItems.Add(new DismissModalToolBarItem(this));
|
||||
}
|
||||
|
||||
// Username
|
||||
// Name
|
||||
var nameCell = new LabeledValueCell(AppResources.Name);
|
||||
nameCell.Value.SetBinding<VaultViewSitePageModel>(Label.TextProperty, s => s.Name);
|
||||
|
||||
@@ -55,7 +55,10 @@ namespace Bit.App.Pages
|
||||
PasswordCell = new LabeledValueCell(AppResources.Password, button1Text: string.Empty, button2Text: AppResources.Copy);
|
||||
PasswordCell.Value.SetBinding<VaultViewSitePageModel>(Label.TextProperty, s => s.MaskedPassword);
|
||||
PasswordCell.Button1.SetBinding<VaultViewSitePageModel>(Button.ImageProperty, s => s.ShowHideImage);
|
||||
PasswordCell.Button1.Margin = new Thickness(10, 0);
|
||||
if(Device.OS == TargetPlatform.iOS)
|
||||
{
|
||||
PasswordCell.Button1.Margin = new Thickness(10, 0);
|
||||
}
|
||||
PasswordCell.Button1.Command = new Command(() => Model.RevealPassword = !Model.RevealPassword);
|
||||
PasswordCell.Button2.Command = new Command(() => Copy(Model.Password, AppResources.Password));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user