1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-20 02:03:49 +00:00

cached images

This commit is contained in:
Kyle Spearrin
2017-02-15 21:56:02 -05:00
parent d96b279beb
commit d2d8ee504d
15 changed files with 99 additions and 19 deletions

View File

@@ -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