Browse Source

Added NoImage to all mobile platforms

pull/49/merge
Javier Suárez Ruiz 8 years ago
parent
commit
e02b372ac2
11 changed files with 55 additions and 21 deletions
  1. +8
    -8
      src/Mobile/eShopOnContainers/eShopOnContainers.Core/Views/CatalogView.xaml
  2. +9
    -1
      src/Mobile/eShopOnContainers/eShopOnContainers.Core/Views/Templates/CartOrderItemTemplate.xaml
  3. +9
    -1
      src/Mobile/eShopOnContainers/eShopOnContainers.Core/Views/Templates/OrderItemTemplate.xaml
  4. +10
    -2
      src/Mobile/eShopOnContainers/eShopOnContainers.Core/Views/Templates/ProductTemplate.xaml
  5. +12
    -9
      src/Mobile/eShopOnContainers/eShopOnContainers.Droid/Resources/Resource.Designer.cs
  6. BIN
      src/Mobile/eShopOnContainers/eShopOnContainers.Droid/Resources/drawable/noimage.png
  7. +3
    -0
      src/Mobile/eShopOnContainers/eShopOnContainers.Droid/eShopOnContainers.Droid.csproj
  8. BIN
      src/Mobile/eShopOnContainers/eShopOnContainers.Windows/Assets/noimage.png
  9. +1
    -0
      src/Mobile/eShopOnContainers/eShopOnContainers.Windows/eShopOnContainers.Windows.csproj
  10. BIN
      src/Mobile/eShopOnContainers/eShopOnContainers.iOS/Resources/noimage.png
  11. +3
    -0
      src/Mobile/eShopOnContainers/eShopOnContainers.iOS/eShopOnContainers.iOS.csproj

+ 8
- 8
src/Mobile/eShopOnContainers/eShopOnContainers.Core/Views/CatalogView.xaml View File

@ -71,6 +71,14 @@
<!-- CATALOG -->
<Grid
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
x:Name="Products"
IsVisible="{Binding Products.Count, Converter={StaticResource CountToBoolConverter}}"
@ -93,14 +101,6 @@
</DataTemplate>
</ListView.ItemTemplate>
</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>
<!-- INDICATOR -->
<ActivityIndicator


+ 9
- 1
src/Mobile/eShopOnContainers/eShopOnContainers.Core/Views/Templates/CartOrderItemTemplate.xaml View File

@ -90,7 +90,15 @@
WidthRequest="108"
Aspect="AspectFit"
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.Column="1"
Grid.Row="0"


+ 9
- 1
src/Mobile/eShopOnContainers/eShopOnContainers.Core/Views/Templates/OrderItemTemplate.xaml View File

@ -78,7 +78,15 @@
WidthRequest="108"
Aspect="AspectFit"
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.Column="1"
Grid.Row="0"


+ 10
- 2
src/Mobile/eShopOnContainers/eShopOnContainers.Core/Views/Templates/ProductTemplate.xaml View File

@ -72,11 +72,19 @@
</Grid.RowDefinitions>
<ffimageloading:CachedImage
Grid.Row="0"
Source="{Binding PictureUri}"
Source="{Binding PictureUri}"
CacheDuration="30"
CacheType="Disk"
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.Row="0"
Grid.RowSpan="2"


+ 12
- 9
src/Mobile/eShopOnContainers/eShopOnContainers.Droid/Resources/Resource.Designer.cs View File

@ -2314,26 +2314,29 @@ namespace eShopOnContainers.Droid
// aapt resource value: 0x7f0200ac
public const int mr_ic_play_light = 2130837676;
// aapt resource value: 0x7f0200b3
public const int notification_template_icon_bg = 2130837683;
// 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
public const int roundedbg = 2130837678;
public const int product_add = 2130837678;
// aapt resource value: 0x7f0200af
public const int roundedbgdark = 2130837679;
public const int roundedbg = 2130837679;
// aapt resource value: 0x7f0200b0
public const int splash_drawable = 2130837680;
public const int roundedbgdark = 2130837680;
// aapt resource value: 0x7f0200b1
public const int switch_off = 2130837681;
public const int splash_drawable = 2130837681;
// 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()
{


BIN
src/Mobile/eShopOnContainers/eShopOnContainers.Droid/Resources/drawable/noimage.png View File

Before After
Width: 650  |  Height: 500  |  Size: 5.1 KiB

+ 3
- 0
src/Mobile/eShopOnContainers/eShopOnContainers.Droid/eShopOnContainers.Droid.csproj View File

@ -344,6 +344,9 @@
<ItemGroup>
<AndroidResource Include="Resources\drawable-xxhdpi\switch_off.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\noimage.png" />
</ItemGroup>
<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')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">


BIN
src/Mobile/eShopOnContainers/eShopOnContainers.Windows/Assets/noimage.png View File

Before After
Width: 650  |  Height: 500  |  Size: 5.1 KiB

+ 1
- 0
src/Mobile/eShopOnContainers/eShopOnContainers.Windows/eShopOnContainers.Windows.csproj View File

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


BIN
src/Mobile/eShopOnContainers/eShopOnContainers.iOS/Resources/noimage.png View File

Before After
Width: 650  |  Height: 500  |  Size: 5.1 KiB

+ 3
- 0
src/Mobile/eShopOnContainers/eShopOnContainers.iOS/eShopOnContainers.iOS.csproj View File

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


Loading…
Cancel
Save