-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new sample CachedImageSizingTestPage
- Loading branch information
1 parent
af90823
commit 13fb872
Showing
13 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+369 Bytes
.../ImageLoading.Forms.Sample/Droid/Resources/drawable-hdpi/ic_star_black_24dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+467 Bytes
...ImageLoading.Forms.Sample/Droid/Resources/drawable-xhdpi/ic_star_black_24dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+668 Bytes
...mageLoading.Forms.Sample/Droid/Resources/drawable-xxhdpi/ic_star_black_24dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
samples/ImageLoading.Forms.Sample/Shared/Pages/CachedImageSizingTestPage.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:xamvvm="clr-namespace:Xamvvm;assembly=Xamvvm.Forms" xmlns:ffimageloading="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms" xmlns:fftransformations="clr-namespace:FFImageLoading.Transformations;assembly=FFImageLoading.Transformations" x:Class="FFImageLoading.Forms.Sample.CachedImageSizingTestPage"> | ||
<ScrollView> | ||
<StackLayout Orientation="Vertical" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Padding="16,32,16,16"> | ||
<StackLayout Orientation="Horizontal"> | ||
<Label Text="Forms:Image" FontSize="14" HorizontalOptions="CenterAndExpand"/> | ||
<Label Text="FFImageloading:CachedImage" HorizontalOptions="CenterAndExpand" FontSize="14"/> | ||
</StackLayout> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width=".5*" /> | ||
<ColumnDefinition Width=".5*" /> | ||
</Grid.ColumnDefinitions> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="100" /> | ||
<RowDefinition Height="100" /> | ||
<RowDefinition Height="100" /> | ||
<RowDefinition Height="100" /> | ||
<RowDefinition Height="100" /> | ||
<RowDefinition Height="100" /> | ||
</Grid.RowDefinitions> | ||
|
||
<StackLayout Grid.Column="0" Grid.Row="0" HorizontalOptions="FillAndExpand"> | ||
<Image HorizontalOptions="Center" Source="ic_star_black_24dp" /> | ||
</StackLayout> | ||
|
||
<StackLayout Grid.Column="1" Grid.Row="0" HorizontalOptions="FillAndExpand"> | ||
<ffimageloading:CachedImage HorizontalOptions="Center" Source="ic_star_black_24dp" /> | ||
</StackLayout> | ||
|
||
<StackLayout Grid.Column="0" Grid.Row="1" HorizontalOptions="FillAndExpand"> | ||
<Image HorizontalOptions="Center" Source="ic_star_black_24dp" WidthRequest="40"/> | ||
</StackLayout> | ||
|
||
<StackLayout Grid.Column="1" Grid.Row="1" HorizontalOptions="FillAndExpand"> | ||
<ffimageloading:CachedImage HorizontalOptions="Center" Source="ic_star_black_24dp" DownsampleToViewSize="true" WidthRequest="40"/> | ||
</StackLayout> | ||
|
||
<StackLayout Grid.Column="0" Grid.Row="2" HorizontalOptions="FillAndExpand"> | ||
<Image HorizontalOptions="Center" Source="ic_star_black_24dp" WidthRequest="40"/> | ||
</StackLayout> | ||
|
||
<StackLayout Grid.Column="1" Grid.Row="2" HorizontalOptions="FillAndExpand"> | ||
<ffimageloading:CachedImage HorizontalOptions="Center" Source="ic_star_black_24dp" DownsampleToViewSize="true" WidthRequest="40" DownsampleWidth="24"/> | ||
</StackLayout> | ||
|
||
<StackLayout Grid.Column="0" Grid.Row="3" HorizontalOptions="FillAndExpand"> | ||
<Image HorizontalOptions="Center" Source="ic_star_black_24dp" WidthRequest="24" /> | ||
</StackLayout> | ||
|
||
<StackLayout Grid.Column="1" Grid.Row="3" HorizontalOptions="FillAndExpand"> | ||
<ffimageloading:CachedImage HorizontalOptions="Center" Source="ic_star_black_24dp" DownsampleToViewSize="true" WidthRequest="24"/> | ||
</StackLayout> | ||
|
||
</Grid> | ||
</StackLayout> | ||
</ScrollView> | ||
</ContentPage> |
13 changes: 13 additions & 0 deletions
13
samples/ImageLoading.Forms.Sample/Shared/Pages/CachedImageSizingTestPage.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Xamarin.Forms; | ||
using Xamvvm; | ||
|
||
namespace FFImageLoading.Forms.Sample | ||
{ | ||
public partial class CachedImageSizingTestPage : ContentPage, IBasePage<CachedImageSizingTestPageModel> | ||
{ | ||
public CachedImageSizingTestPage() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
samples/ImageLoading.Forms.Sample/Shared/Pages/CachedImageSizingTestPageModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
using Xamvvm; | ||
|
||
namespace FFImageLoading.Forms.Sample | ||
{ | ||
public class CachedImageSizingTestPageModel : BasePageModel | ||
{ | ||
public CachedImageSizingTestPageModel() | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+263 Bytes
samples/ImageLoading.Forms.Sample/iOS/Resources/ic_star_black_24dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.