Added NoImage to all mobile platforms

This commit is contained in:
Javier Suárez Ruiz 2016-11-23 08:21:52 +01:00
parent 579f7afac0
commit e02b372ac2
11 changed files with 55 additions and 21 deletions

View File

@ -71,6 +71,14 @@
<!-- CATALOG --> <!-- CATALOG -->
<Grid <Grid
Grid.Row="1"> Grid.Row="1">
<Grid
IsVisible="{Binding IsBusy, Converter={StaticResource InverseBoolConverter}}">
<Label
Text="NO PRODUCTS FOUND"
IsVisible="{Binding Products.Count, Converter={StaticResource InverseCountToBoolConverter}}"
HorizontalOptions="Center"
VerticalOptions="Center"/>
</Grid>
<ListView <ListView
x:Name="Products" x:Name="Products"
IsVisible="{Binding Products.Count, Converter={StaticResource CountToBoolConverter}}" IsVisible="{Binding Products.Count, Converter={StaticResource CountToBoolConverter}}"
@ -93,14 +101,6 @@
</DataTemplate> </DataTemplate>
</ListView.ItemTemplate> </ListView.ItemTemplate>
</ListView> </ListView>
<Grid
IsVisible="{Binding IsBusy, Converter={StaticResource InverseBoolConverter}}">
<Label
Text="NO PRODUCTS FOUND"
IsVisible="{Binding Products.Count, Converter={StaticResource InverseCountToBoolConverter}}"
HorizontalOptions="Center"
VerticalOptions="Center"/>
</Grid>
</Grid> </Grid>
<!-- INDICATOR --> <!-- INDICATOR -->
<ActivityIndicator <ActivityIndicator

View File

@ -90,7 +90,15 @@
WidthRequest="108" WidthRequest="108"
Aspect="AspectFit" Aspect="AspectFit"
VerticalOptions="Start" VerticalOptions="Start"
Margin="12,0,0,0"/> Margin="12,0,0,0">
<ffimageloading:CachedImage.ErrorPlaceholder>
<OnPlatform
x:TypeArguments="ImageSource"
iOS="noimage"
Android="noimage"
WinPhone="Assets/noimage.png"/>
</ffimageloading:CachedImage.ErrorPlaceholder>
</ffimageloading:CachedImage>
<Grid <Grid
Grid.Column="1" Grid.Column="1"
Grid.Row="0" Grid.Row="0"

View File

@ -78,7 +78,15 @@
WidthRequest="108" WidthRequest="108"
Aspect="AspectFit" Aspect="AspectFit"
VerticalOptions="Start" VerticalOptions="Start"
Margin="12,0,0,0"/> Margin="12,0,0,0">
<ffimageloading:CachedImage.ErrorPlaceholder>
<OnPlatform
x:TypeArguments="ImageSource"
iOS="noimage"
Android="noimage"
WinPhone="Assets/noimage.png"/>
</ffimageloading:CachedImage.ErrorPlaceholder>
</ffimageloading:CachedImage>
<Grid <Grid
Grid.Column="1" Grid.Column="1"
Grid.Row="0" Grid.Row="0"

View File

@ -76,7 +76,15 @@
CacheDuration="30" CacheDuration="30"
CacheType="Disk" CacheType="Disk"
DownsampleToViewSize="True" DownsampleToViewSize="True"
Aspect="AspectFill"/> Aspect="AspectFill">
<ffimageloading:CachedImage.ErrorPlaceholder>
<OnPlatform
x:TypeArguments="ImageSource"
iOS="noimage"
Android="noimage"
WinPhone="Assets/noimage.png"/>
</ffimageloading:CachedImage.ErrorPlaceholder>
</ffimageloading:CachedImage>
<Grid <Grid
Grid.Row="0" Grid.Row="0"
Grid.RowSpan="2" Grid.RowSpan="2"

View File

@ -2314,26 +2314,29 @@ namespace eShopOnContainers.Droid
// aapt resource value: 0x7f0200ac // aapt resource value: 0x7f0200ac
public const int mr_ic_play_light = 2130837676; public const int mr_ic_play_light = 2130837676;
// aapt resource value: 0x7f0200b3
public const int notification_template_icon_bg = 2130837683;
// aapt resource value: 0x7f0200ad // aapt resource value: 0x7f0200ad
public const int product_add = 2130837677; public const int noimage = 2130837677;
// aapt resource value: 0x7f0200b4
public const int notification_template_icon_bg = 2130837684;
// aapt resource value: 0x7f0200ae // aapt resource value: 0x7f0200ae
public const int roundedbg = 2130837678; public const int product_add = 2130837678;
// aapt resource value: 0x7f0200af // aapt resource value: 0x7f0200af
public const int roundedbgdark = 2130837679; public const int roundedbg = 2130837679;
// aapt resource value: 0x7f0200b0 // aapt resource value: 0x7f0200b0
public const int splash_drawable = 2130837680; public const int roundedbgdark = 2130837680;
// aapt resource value: 0x7f0200b1 // aapt resource value: 0x7f0200b1
public const int switch_off = 2130837681; public const int splash_drawable = 2130837681;
// aapt resource value: 0x7f0200b2 // aapt resource value: 0x7f0200b2
public const int switch_on = 2130837682; public const int switch_off = 2130837682;
// aapt resource value: 0x7f0200b3
public const int switch_on = 2130837683;
static Drawable() static Drawable()
{ {

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

@ -344,6 +344,9 @@
<ItemGroup> <ItemGroup>
<AndroidResource Include="Resources\drawable-xxhdpi\switch_off.png" /> <AndroidResource Include="Resources\drawable-xxhdpi\switch_off.png" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\noimage.png" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
<Import Project="..\..\packages\Xamarin.Android.Support.Vector.Drawable.23.3.0\build\Xamarin.Android.Support.Vector.Drawable.targets" Condition="Exists('..\..\packages\Xamarin.Android.Support.Vector.Drawable.23.3.0\build\Xamarin.Android.Support.Vector.Drawable.targets')" /> <Import Project="..\..\packages\Xamarin.Android.Support.Vector.Drawable.23.3.0\build\Xamarin.Android.Support.Vector.Drawable.targets" Condition="Exists('..\..\packages\Xamarin.Android.Support.Vector.Drawable.23.3.0\build\Xamarin.Android.Support.Vector.Drawable.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

@ -138,6 +138,7 @@
<Content Include="Assets\menu_cart.png" /> <Content Include="Assets\menu_cart.png" />
<Content Include="Assets\menu_filter.png" /> <Content Include="Assets\menu_filter.png" />
<Content Include="Assets\menu_profile.png" /> <Content Include="Assets\menu_profile.png" />
<Content Include="Assets\noimage.png" />
<Content Include="Assets\product_add.png" /> <Content Include="Assets\product_add.png" />
<Content Include="Assets\switchOff.png" /> <Content Include="Assets\switchOff.png" />
<Content Include="Assets\switchOn.png" /> <Content Include="Assets\switchOn.png" />

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

@ -366,6 +366,9 @@
<ItemGroup> <ItemGroup>
<BundleResource Include="Resources\Logo.png" /> <BundleResource Include="Resources\Logo.png" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\noimage.png" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup> <PropertyGroup>