Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,25 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="4.3.0.819712-pre2" />
<PackageReference Include="Xamarin.Android.Support.Core.Utils" Version="28.0.0.1" />
<PackageReference Include="Xamarin.Essentials" Version="1.3.0" />
<PackageReference Include="Xamarin.Android.Support.Core.Utils" Version="28.0.0.3" />
<PackageReference Include="Xamarin.Essentials" Version="1.3.1" />
<PackageReference Include="Xamarin.Forms.PancakeView">
<Version>1.2.1</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<Compile Include="MainActivity.cs" />
<Compile Include="Resources\Resource.designer.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<AndroidAsset Include="Assets\Fonts\Roboto-Black.ttf" />
<AndroidAsset Include="Assets\Fonts\Roboto-Bold.ttf" />
<AndroidAsset Include="Assets\Fonts\Roboto-Light.ttf" />
<AndroidAsset Include="Assets\Fonts\Roboto-Medium.ttf" />
<AndroidAsset Include="Assets\Fonts\Roboto-Regular.ttf" />
<AndroidAsset Include="Assets\Fonts\Roboto-Thin.ttf" />
<AndroidAsset Include="Assets\Fonts\materialdesignicons-webfont.ttf" />
<None Include="Resources\AboutResources.txt" />
<None Include="Assets\AboutAssets.txt" />
<None Include="Properties\AndroidManifest.xml" />
Expand Down Expand Up @@ -100,5 +110,17 @@
<Name>CarouselViewChallenge</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\bmwlogowallpaper1.jpg" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\bmwvisionmnextconcep1.jpg" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\bmwvisionmnextconcep2.jpg" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\bmwvisionmnextconcep3.jpg" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
</Project>
</Project>
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@
</AppxManifest>
</ItemGroup>
<ItemGroup>
<Content Include="bmwlogowallpaper1.jpg" />
<Content Include="bmwvisionmnextconcep1.jpg" />
<Content Include="bmwvisionmnextconcep2.jpg" />
<Content Include="bmwvisionmnextconcep3.jpg" />
<Content Include="Properties\Default.rd.xml" />
<Content Include="Assets\LargeTile.scale-100.png" />
<Content Include="Assets\LargeTile.scale-200.png" />
Expand Down Expand Up @@ -147,16 +151,40 @@
<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="4.3.0.819712-pre2" />
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.1.9" />
<PackageReference Include="Xamarin.Essentials" Version="1.3.0" />
<PackageReference Include="Xamarin.Essentials" Version="1.3.1" />
<PackageReference Include="Xamarin.Forms.PancakeView">
<Version>1.2.1</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CarouselViewChallenge\CarouselViewChallenge.csproj">
<Project>{A4F2D92A-6935-4F45-B655-CEC4616F90DF}</Project>
<Name>CarouselViewChallenge</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="Assets\Fonts\materialdesignicons-webfont.ttf" />
</ItemGroup>
<ItemGroup>
<Content Include="Assets\Fonts\Roboto-Black.ttf" />
</ItemGroup>
<ItemGroup>
<Content Include="Assets\Fonts\Roboto-Bold.ttf" />
</ItemGroup>
<ItemGroup>
<Content Include="Assets\Fonts\Roboto-Light.ttf" />
</ItemGroup>
<ItemGroup>
<Content Include="Assets\Fonts\Roboto-Medium.ttf" />
</ItemGroup>
<ItemGroup>
<Content Include="Assets\Fonts\Roboto-Regular.ttf" />
</ItemGroup>
<ItemGroup>
<Content Include="Assets\Fonts\Roboto-Thin.ttf" />
</ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
</Project>
</Project>
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@
<None Include="Entitlements.plist" />
<None Include="Info.plist" />
<Compile Include="Properties\AssemblyInfo.cs" />
<BundleResource Include="Resources\Fonts\Roboto-Black.ttf" />
<BundleResource Include="Resources\Fonts\Roboto-Bold.ttf" />
<BundleResource Include="Resources\Fonts\Roboto-Light.ttf" />
<BundleResource Include="Resources\Fonts\Roboto-Medium.ttf" />
<BundleResource Include="Resources\Fonts\Roboto-Regular.ttf" />
<BundleResource Include="Resources\Fonts\Roboto-Thin.ttf" />
<BundleResource Include="Resources\Fonts\materialdesignicons-webfont.ttf" />
</ItemGroup>
<ItemGroup>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Contents.json">
Expand Down Expand Up @@ -130,7 +137,10 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="4.3.0.819712-pre2" />
<PackageReference Include="Xamarin.Essentials" Version="1.3.0" />
<PackageReference Include="Xamarin.Essentials" Version="1.3.1" />
<PackageReference Include="Xamarin.Forms.PancakeView">
<Version>1.2.1</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
<ItemGroup>
Expand All @@ -139,4 +149,16 @@
<Name>CarouselViewChallenge</Name>
</ProjectReference>
</ItemGroup>
</Project>
<ItemGroup>
<BundleResource Include="Resources\bmwlogowallpaper1.jpg" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\bmwvisionmnextconcep1.jpg" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\bmwvisionmnextconcep2.jpg" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\bmwvisionmnextconcep3.jpg" />
</ItemGroup>
</Project>
74 changes: 42 additions & 32 deletions CarouselViewChallenge/CarouselViewChallenge.iOS/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,47 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>MinimumOSVersion</key>
<string>8.0</string>
<key>CFBundleDisplayName</key>
<string>CarouselViewChallenge</string>
<key>CFBundleIdentifier</key>
<string>com.companyname.CarouselViewChallenge</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>CFBundleName</key>
<string>CarouselViewChallenge</string>
<key>XSAppIconAssets</key>
<string>Assets.xcassets/AppIcon.appiconset</string>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>MinimumOSVersion</key>
<string>8.0</string>
<key>CFBundleDisplayName</key>
<string>CarouselViewChallenge</string>
<key>CFBundleIdentifier</key>
<string>com.companyname.CarouselViewChallenge</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>CFBundleName</key>
<string>CarouselViewChallenge</string>
<key>XSAppIconAssets</key>
<string>Assets.xcassets/AppIcon.appiconset</string>
<key>UIAppFonts</key>
<array>
<string>Fonts/Roboto-Bold.ttf</string>
<string>Fonts/Roboto-Regular.ttf</string>
<string>Fonts/Roboto-Medium.ttf</string>
<string>Fonts/Roboto-Light.ttf</string>
<string>Fonts/Roboto-Thin.ttf</string>
<string>Fonts/Roboto-Black.ttf</string>
<string>Fonts/materialdesignicons-webfont.ttf</string>
</array>
</dict>
</plist>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions CarouselViewChallenge/CarouselViewChallenge/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:styles="clr-namespace:CarouselViewChallenge.Styles"
mc:Ignorable="d"
x:Class="CarouselViewChallenge.App">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<styles:Colors />
<styles:Fonts />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@

<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="4.3.0.819712-pre2" />
<PackageReference Include="Xamarin.Essentials" Version="1.3.0" />
</ItemGroup>

<ItemGroup>
<Folder Include="Models\" />
<PackageReference Include="Xamarin.Essentials" Version="1.3.1" />
<PackageReference Include="Xamarin.Forms.PancakeView" Version="1.2.1" />
</ItemGroup>

<ItemGroup>
Expand All @@ -21,6 +18,12 @@
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Styles\Colors.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
<EmbeddedResource Update="Styles\Fonts.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
<EmbeddedResource Update="Views\CarouselViewChallengePage.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
Expand Down
11 changes: 11 additions & 0 deletions CarouselViewChallenge/CarouselViewChallenge/Models/Item.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace CarouselViewChallenge.Models
{
public class Item
{
public string Id { get; set; }
public string Title { get; set; }
public string SubTitle { get; set; }
public string Description { get; set; }
public string ImageUrl { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using CarouselViewChallenge.Models;

namespace CarouselViewChallenge.Services
{
public class MockCarService
{
private static MockCarService _instance;

public static MockCarService Instance
{
get
{
if (_instance == null)
_instance = new MockCarService();
return _instance;
}
}

public List<Item> GetItems()
{
return new List<Item>
{
new Item { Id= Guid.NewGuid().ToString(), ImageUrl="bmwvisionmnextconcep1.jpg" , Title="BMW Vision M NEXT", SubTitle="", Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. " },
new Item { Id= Guid.NewGuid().ToString(), ImageUrl="bmwvisionmnextconcep2.jpg" , Title="BMW Vision M NEXT", SubTitle="", Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. " },
new Item { Id= Guid.NewGuid().ToString(), ImageUrl="bmwvisionmnextconcep3.jpg" , Title="BMW Vision M NEXT", SubTitle="", Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. " }
};
}
}
}
17 changes: 17 additions & 0 deletions CarouselViewChallenge/CarouselViewChallenge/Styles/Colors.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8" ?>
<ResourceDictionary xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="CarouselViewChallenge.Styles.Colors">

<!-- COLORS -->
<Color x:Key="BlackColor">#000000</Color>
<Color x:Key="WhiteColor">#FFFFFF</Color>
<!--M Colors-->
<Color x:Key="BMWMLightBlue">#81C4FF</Color>
<Color x:Key="BMWMDarkBlue">#16588E</Color>
<Color x:Key="BMWMRed">#E7222E</Color>

</ResourceDictionary>
13 changes: 13 additions & 0 deletions CarouselViewChallenge/CarouselViewChallenge/Styles/Colors.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using Xamarin.Forms;

namespace CarouselViewChallenge.Styles
{

public partial class Colors : ResourceDictionary
{
public Colors()
{
InitializeComponent();
}
}
}
39 changes: 39 additions & 0 deletions CarouselViewChallenge/CarouselViewChallenge/Styles/Fonts.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8" ?>
<ResourceDictionary xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="CarouselViewChallenge.Styles.Fonts">
<!--Roboto-->
<OnPlatform x:Key="RobotoRegular"
x:TypeArguments="x:String"
Android="Fonts/Roboto-Regular.ttf#Roboto"
iOS="Fonts/Roboto-Regular" />
<OnPlatform x:Key="RobotoLight"
x:TypeArguments="x:String"
Android="Fonts/Roboto-Light.ttf#Roboto Light"
iOS="Fonts/Roboto-Light" />
<OnPlatform x:Key="RobotoBold"
x:TypeArguments="x:String"
Android="Fonts/Roboto-Bold.ttf#Roboto Bold"
iOS="Fonts/Roboto-Bold" />
<OnPlatform x:Key="RobotoBlack"
x:TypeArguments="x:String"
Android="Fonts/Roboto-Black.ttf#Roboto Black"
iOS="Fonts/Roboto-Black" />
<OnPlatform x:Key="RobotoMedium"
x:TypeArguments="x:String"
Android="Fonts/Roboto-Medium.ttf#Roboto Medium"
iOS="Fonts/Roboto-Medium" />
<OnPlatform x:Key="RobotoThin"
x:TypeArguments="x:String"
Android="Fonts/Roboto-Thin.ttf#Roboto Thin"
iOS="Fonts/Roboto-Thin" />
<!--MaterialDesignIcons-->
<OnPlatform x:Key="MaterialDesignIcons"
x:TypeArguments="x:String"
Android="Fonts/materialdesignicons-webfont.ttf#Material Design Icons"
iOS="Fonts/materialdesignicons-webfont.ttf"
WinPhone="Assets/Fonts/materialdesignicons-webfont.ttf#Material Design Icons"/>
</ResourceDictionary>
Loading