diff --git a/samples/ImageLoading.Forms.Sample/Droid/FFImageLoading.Forms.Sample.Droid.csproj b/samples/ImageLoading.Forms.Sample/Droid/FFImageLoading.Forms.Sample.Droid.csproj index d82e87ddb..182aa6d22 100644 --- a/samples/ImageLoading.Forms.Sample/Droid/FFImageLoading.Forms.Sample.Droid.csproj +++ b/samples/ImageLoading.Forms.Sample/Droid/FFImageLoading.Forms.Sample.Droid.csproj @@ -191,6 +191,9 @@ + + + diff --git a/samples/ImageLoading.Forms.Sample/Droid/Resources/drawable-hdpi/ic_star_black_24dp.png b/samples/ImageLoading.Forms.Sample/Droid/Resources/drawable-hdpi/ic_star_black_24dp.png new file mode 100755 index 000000000..92a0f5862 Binary files /dev/null and b/samples/ImageLoading.Forms.Sample/Droid/Resources/drawable-hdpi/ic_star_black_24dp.png differ diff --git a/samples/ImageLoading.Forms.Sample/Droid/Resources/drawable-xhdpi/ic_star_black_24dp.png b/samples/ImageLoading.Forms.Sample/Droid/Resources/drawable-xhdpi/ic_star_black_24dp.png new file mode 100755 index 000000000..c636ce8e8 Binary files /dev/null and b/samples/ImageLoading.Forms.Sample/Droid/Resources/drawable-xhdpi/ic_star_black_24dp.png differ diff --git a/samples/ImageLoading.Forms.Sample/Droid/Resources/drawable-xxhdpi/ic_star_black_24dp.png b/samples/ImageLoading.Forms.Sample/Droid/Resources/drawable-xxhdpi/ic_star_black_24dp.png new file mode 100755 index 000000000..54d306599 Binary files /dev/null and b/samples/ImageLoading.Forms.Sample/Droid/Resources/drawable-xxhdpi/ic_star_black_24dp.png differ diff --git a/samples/ImageLoading.Forms.Sample/Shared/FFImageLoading.Forms.Sample.csproj b/samples/ImageLoading.Forms.Sample/Shared/FFImageLoading.Forms.Sample.csproj index 93c592ccd..3fd077064 100644 --- a/samples/ImageLoading.Forms.Sample/Shared/FFImageLoading.Forms.Sample.csproj +++ b/samples/ImageLoading.Forms.Sample/Shared/FFImageLoading.Forms.Sample.csproj @@ -175,6 +175,10 @@ ByteArrayListPageCell.xaml + + CachedImageSizingTestPage.xaml + + @@ -296,6 +300,9 @@ MSBuild:UpdateDesignTimeXaml + + MSBuild:UpdateDesignTimeXaml + diff --git a/samples/ImageLoading.Forms.Sample/Shared/Pages/CachedImageSizingTestPage.xaml b/samples/ImageLoading.Forms.Sample/Shared/Pages/CachedImageSizingTestPage.xaml new file mode 100644 index 000000000..050197f0b --- /dev/null +++ b/samples/ImageLoading.Forms.Sample/Shared/Pages/CachedImageSizingTestPage.xaml @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/ImageLoading.Forms.Sample/Shared/Pages/CachedImageSizingTestPage.xaml.cs b/samples/ImageLoading.Forms.Sample/Shared/Pages/CachedImageSizingTestPage.xaml.cs new file mode 100644 index 000000000..33219792e --- /dev/null +++ b/samples/ImageLoading.Forms.Sample/Shared/Pages/CachedImageSizingTestPage.xaml.cs @@ -0,0 +1,13 @@ +using Xamarin.Forms; +using Xamvvm; + +namespace FFImageLoading.Forms.Sample +{ + public partial class CachedImageSizingTestPage : ContentPage, IBasePage + { + public CachedImageSizingTestPage() + { + InitializeComponent(); + } + } +} diff --git a/samples/ImageLoading.Forms.Sample/Shared/Pages/CachedImageSizingTestPageModel.cs b/samples/ImageLoading.Forms.Sample/Shared/Pages/CachedImageSizingTestPageModel.cs new file mode 100644 index 000000000..dbb73f5f1 --- /dev/null +++ b/samples/ImageLoading.Forms.Sample/Shared/Pages/CachedImageSizingTestPageModel.cs @@ -0,0 +1,12 @@ +using System; +using Xamvvm; + +namespace FFImageLoading.Forms.Sample +{ + public class CachedImageSizingTestPageModel : BasePageModel + { + public CachedImageSizingTestPageModel() + { + } + } +} diff --git a/samples/ImageLoading.Forms.Sample/Shared/Pages/MenuPageModel.cs b/samples/ImageLoading.Forms.Sample/Shared/Pages/MenuPageModel.cs index 72d1891bc..db7d2b6d9 100644 --- a/samples/ImageLoading.Forms.Sample/Shared/Pages/MenuPageModel.cs +++ b/samples/ImageLoading.Forms.Sample/Shared/Pages/MenuPageModel.cs @@ -103,6 +103,15 @@ public MenuPageModel() }) }, + new MenuItem() { + Section = "Advanced", + Title = "CachedImage sizing test", + Command = new BaseCommand(async (param) => + { + await this.PushPageFromCacheAsync(); + }) + }, + //new MenuItem() { // Section = "Advanced", // Title = "Stream with custom cache key example", diff --git a/samples/ImageLoading.Forms.Sample/iOS/FFImageLoading.Forms.Sample.iOS.csproj b/samples/ImageLoading.Forms.Sample/iOS/FFImageLoading.Forms.Sample.iOS.csproj index 7e58beca1..f3503e6ef 100644 --- a/samples/ImageLoading.Forms.Sample/iOS/FFImageLoading.Forms.Sample.iOS.csproj +++ b/samples/ImageLoading.Forms.Sample/iOS/FFImageLoading.Forms.Sample.iOS.csproj @@ -170,6 +170,9 @@ + + + diff --git a/samples/ImageLoading.Forms.Sample/iOS/Resources/ic_star_black_24dp.png b/samples/ImageLoading.Forms.Sample/iOS/Resources/ic_star_black_24dp.png new file mode 100755 index 000000000..a728afe60 Binary files /dev/null and b/samples/ImageLoading.Forms.Sample/iOS/Resources/ic_star_black_24dp.png differ diff --git a/samples/ImageLoading.Forms.Sample/iOS/Resources/ic_star_black_24dp@2x.png b/samples/ImageLoading.Forms.Sample/iOS/Resources/ic_star_black_24dp@2x.png new file mode 100755 index 000000000..c636ce8e8 Binary files /dev/null and b/samples/ImageLoading.Forms.Sample/iOS/Resources/ic_star_black_24dp@2x.png differ diff --git a/samples/ImageLoading.Forms.Sample/iOS/Resources/ic_star_black_24dp@3x.png b/samples/ImageLoading.Forms.Sample/iOS/Resources/ic_star_black_24dp@3x.png new file mode 100755 index 000000000..54d306599 Binary files /dev/null and b/samples/ImageLoading.Forms.Sample/iOS/Resources/ic_star_black_24dp@3x.png differ