mirror of
https://github.com/bitwarden/mobile
synced 2025-12-27 05:33:23 +00:00
cached images
This commit is contained in:
@@ -260,6 +260,18 @@
|
||||
<HintPath>..\..\packages\Acr.UserDialogs.6.3.3\lib\portable-win+net45+wp8+win8+wpa81\Acr.UserDialogs.Interface.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="FFImageLoading, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.FFImageLoading.2.2.8\lib\portable-net45+win8+wpa81+wp8\FFImageLoading.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="FFImageLoading.Forms, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.FFImageLoading.Forms.2.2.8\lib\portable-net45+win8+wpa81+wp8\FFImageLoading.Forms.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="FFImageLoading.Platform, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.FFImageLoading.2.2.8\lib\portable-net45+win8+wpa81+wp8\FFImageLoading.Platform.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="HockeySDK, Version=1.0.6103.22141, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\HockeySDK.Xamarin.4.1.0\lib\portable-net45+wp8+wpa81+win8+MonoAndroid10+MonoTouch10+Xamarin.iOS10\HockeySDK.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Bit.App.Abstractions;
|
||||
using FFImageLoading.Forms;
|
||||
using System;
|
||||
using Xamarin.Forms;
|
||||
using XLabs.Ioc;
|
||||
@@ -67,11 +68,13 @@ namespace Bit.App.Controls
|
||||
{
|
||||
_tgr = new TapGestureRecognizer();
|
||||
|
||||
var theImage = new Image
|
||||
var theImage = new CachedImage
|
||||
{
|
||||
Source = imageSource,
|
||||
HorizontalOptions = LayoutOptions.Start,
|
||||
VerticalOptions = LayoutOptions.Center
|
||||
VerticalOptions = LayoutOptions.Center,
|
||||
WidthRequest = 18,
|
||||
HeightRequest = 18
|
||||
};
|
||||
theImage.GestureRecognizers.Add(_tgr);
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ using Xamarin.Forms;
|
||||
using XLabs.Ioc;
|
||||
using Plugin.Settings.Abstractions;
|
||||
using Bit.App.Controls;
|
||||
using FFImageLoading.Forms;
|
||||
|
||||
namespace Bit.App.Pages
|
||||
{
|
||||
@@ -30,11 +31,13 @@ namespace Bit.App.Pages
|
||||
{
|
||||
MessagingCenter.Send(Application.Current, "ShowStatusBar", false);
|
||||
|
||||
var logo = new Image
|
||||
var logo = new CachedImage
|
||||
{
|
||||
Source = "logo",
|
||||
VerticalOptions = LayoutOptions.CenterAndExpand,
|
||||
HorizontalOptions = LayoutOptions.Center
|
||||
HorizontalOptions = LayoutOptions.Center,
|
||||
WidthRequest = 282,
|
||||
HeightRequest = 44
|
||||
};
|
||||
|
||||
var message = new Label
|
||||
|
||||
@@ -4,6 +4,7 @@ using Xamarin.Forms;
|
||||
using Bit.App.Abstractions;
|
||||
using XLabs.Ioc;
|
||||
using Bit.App.Resources;
|
||||
using FFImageLoading.Forms;
|
||||
|
||||
namespace Bit.App.Pages
|
||||
{
|
||||
@@ -19,10 +20,12 @@ namespace Bit.App.Pages
|
||||
|
||||
public void Init()
|
||||
{
|
||||
var logo = new Image
|
||||
var logo = new CachedImage
|
||||
{
|
||||
Source = "logo",
|
||||
HorizontalOptions = LayoutOptions.Center
|
||||
HorizontalOptions = LayoutOptions.Center,
|
||||
WidthRequest = 282,
|
||||
HeightRequest = 44
|
||||
};
|
||||
|
||||
var versionLabel = new Label
|
||||
|
||||
@@ -4,6 +4,7 @@ using Xamarin.Forms;
|
||||
using XLabs.Ioc;
|
||||
using Bit.App.Abstractions;
|
||||
using Bit.App.Resources;
|
||||
using FFImageLoading.Forms;
|
||||
|
||||
namespace Bit.App.Pages
|
||||
{
|
||||
@@ -74,7 +75,7 @@ namespace Bit.App.Pages
|
||||
TextColor = Color.Black
|
||||
};
|
||||
|
||||
var step1Image = new Image
|
||||
var step1Image = new CachedImage
|
||||
{
|
||||
Source = "accessibility_step1",
|
||||
HorizontalOptions = LayoutOptions.Center,
|
||||
@@ -92,7 +93,7 @@ namespace Bit.App.Pages
|
||||
TextColor = Color.Black
|
||||
};
|
||||
|
||||
var step2Image = new Image
|
||||
var step2Image = new CachedImage
|
||||
{
|
||||
Source = "accessibility_step2",
|
||||
HorizontalOptions = LayoutOptions.Center,
|
||||
@@ -119,7 +120,7 @@ namespace Bit.App.Pages
|
||||
TextColor = Color.Black
|
||||
};
|
||||
|
||||
var tapNotificationImage = new Image
|
||||
var tapNotificationImage = new CachedImage
|
||||
{
|
||||
Source = "accessibility_notification",
|
||||
HorizontalOptions = LayoutOptions.Center,
|
||||
@@ -128,7 +129,7 @@ namespace Bit.App.Pages
|
||||
HeightRequest = 74
|
||||
};
|
||||
|
||||
var tapNotificationIcon = new Image
|
||||
var tapNotificationIcon = new CachedImage
|
||||
{
|
||||
Source = "accessibility_notification_icon",
|
||||
HorizontalOptions = LayoutOptions.Center,
|
||||
|
||||
@@ -8,6 +8,7 @@ using Xamarin.Forms;
|
||||
using XLabs.Ioc;
|
||||
using Bit.App.Abstractions;
|
||||
using Bit.App.Resources;
|
||||
using FFImageLoading.Forms;
|
||||
|
||||
namespace Bit.App.Pages
|
||||
{
|
||||
@@ -52,12 +53,14 @@ namespace Bit.App.Pages
|
||||
LineBreakMode = LineBreakMode.WordWrap
|
||||
};
|
||||
|
||||
var notStartedImage = new Image
|
||||
var notStartedImage = new CachedImage
|
||||
{
|
||||
Source = "ext-more",
|
||||
VerticalOptions = LayoutOptions.CenterAndExpand,
|
||||
HorizontalOptions = LayoutOptions.Center,
|
||||
Margin = new Thickness(0, -10, 0, 0)
|
||||
Margin = new Thickness(0, -10, 0, 0),
|
||||
WidthRequest = 290,
|
||||
HeightRequest = 252
|
||||
};
|
||||
|
||||
var notStartedButton = new ExtendedButton
|
||||
@@ -101,12 +104,14 @@ namespace Bit.App.Pages
|
||||
LineBreakMode = LineBreakMode.WordWrap
|
||||
};
|
||||
|
||||
var notActivatedImage = new Image
|
||||
var notActivatedImage = new CachedImage
|
||||
{
|
||||
Source = "ext-act",
|
||||
VerticalOptions = LayoutOptions.CenterAndExpand,
|
||||
HorizontalOptions = LayoutOptions.Center,
|
||||
Margin = new Thickness(0, -10, 0, 0)
|
||||
Margin = new Thickness(0, -10, 0, 0),
|
||||
WidthRequest = 290,
|
||||
HeightRequest = 252
|
||||
};
|
||||
|
||||
var notActivatedButton = new ExtendedButton
|
||||
@@ -151,12 +156,14 @@ namespace Bit.App.Pages
|
||||
Margin = new Thickness(0, 10, 0, 0)
|
||||
};
|
||||
|
||||
var activatedImage = new Image
|
||||
var activatedImage = new CachedImage
|
||||
{
|
||||
Source = "ext-use",
|
||||
VerticalOptions = LayoutOptions.CenterAndExpand,
|
||||
HorizontalOptions = LayoutOptions.Center,
|
||||
Margin = new Thickness(0, -10, 0, 0)
|
||||
Margin = new Thickness(0, -10, 0, 0),
|
||||
WidthRequest = 290,
|
||||
HeightRequest = 252
|
||||
};
|
||||
|
||||
var activatedButton = new ExtendedButton
|
||||
|
||||
@@ -6,6 +6,7 @@ using Bit.App.Controls;
|
||||
using Bit.App.Resources;
|
||||
using Xamarin.Forms;
|
||||
using XLabs.Ioc;
|
||||
using FFImageLoading.Forms;
|
||||
|
||||
namespace Bit.App.Pages
|
||||
{
|
||||
@@ -127,9 +128,11 @@ namespace Bit.App.Pages
|
||||
Text = detailText
|
||||
};
|
||||
|
||||
var image = new Image
|
||||
var image = new CachedImage
|
||||
{
|
||||
Source = imageSource
|
||||
Source = imageSource,
|
||||
WidthRequest = 44,
|
||||
HeightRequest = 44
|
||||
};
|
||||
|
||||
var grid = new Grid
|
||||
|
||||
@@ -14,6 +14,7 @@ using Plugin.Settings.Abstractions;
|
||||
using Plugin.Connectivity.Abstractions;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using FFImageLoading.Forms;
|
||||
|
||||
namespace Bit.App.Pages
|
||||
{
|
||||
@@ -490,7 +491,7 @@ namespace Bit.App.Pages
|
||||
{
|
||||
public VaultListHeaderViewCell(VaultListLoginsPage page)
|
||||
{
|
||||
var image = new Image
|
||||
var image = new CachedImage
|
||||
{
|
||||
Source = "folder",
|
||||
WidthRequest = 18,
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
<package id="Xam.Plugin.Connectivity" version="2.2.12" targetFramework="portable45-net45+win8+wpa81" />
|
||||
<package id="Xam.Plugin.PushNotification" version="1.2.4" targetFramework="portable45-net45+win8+wpa81" developmentDependency="true" />
|
||||
<package id="Xam.Plugins.Settings" version="2.5.1.0" targetFramework="portable45-net45+win8+wpa81" />
|
||||
<package id="Xamarin.FFImageLoading" version="2.2.8" targetFramework="portable45-net45+win8+wpa81" />
|
||||
<package id="Xamarin.FFImageLoading.Forms" version="2.2.8" targetFramework="portable45-net45+win8+wpa81" />
|
||||
<package id="Xamarin.Forms" version="2.3.3.180" targetFramework="portable45-net45+win8+wpa81" />
|
||||
<package id="XLabs.IoC" version="2.0.5782" targetFramework="portable45-net45+win8+wpa81" />
|
||||
</packages>
|
||||
Reference in New Issue
Block a user