Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Challange - Coinbase #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
498 changes: 255 additions & 243 deletions VisualChallenge/VisualChallenge.Android/Resources/Resource.designer.cs

Large diffs are not rendered by default.

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 @@ -85,6 +85,10 @@
<AndroidResource Include="Resources\drawable-xhdpi\xamagon_preview.png" />
<AndroidResource Include="Resources\drawable-xxhdpi\xamagon_preview.png" />
<AndroidResource Include="Resources\drawable-xxxhdpi\xamagon_preview.png" />
<AndroidResource Include="Resources\drawable\litecoin.png" />
<AndroidResource Include="Resources\drawable\ethereum.png" />
<AndroidResource Include="Resources\drawable\bitcoin.png" />
<AndroidResource Include="Resources\drawable\tab_feed.png" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
Expand Down
64 changes: 32 additions & 32 deletions VisualChallenge/VisualChallenge.iOS/Info.plist
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,37 @@
<!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>VisualChallenge</string>
<key>CFBundleIdentifier</key>
<string>com.companyname.VisualChallenge</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>CFBundleName</key>
<string>VisualChallenge</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>VisualChallenge</string>
<key>CFBundleIdentifier</key>
<string>com.companyname.VisualChallenge</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>CFBundleName</key>
<string>VisualChallenge</string>
<key>XSAppIconAssets</key>
<string>Assets.xcassets/AppIcon.appiconset</string>
</dict>
</plist>
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 @@ -124,6 +124,9 @@
<BundleResource Include="Resources\xamarin_logo%402x.png" />
<BundleResource Include="Resources\xamarin_logo%403x.png" />
<InterfaceDefinition Include="Resources\LaunchScreen.storyboard" />
<BundleResource Include="Resources\bitcoin.png" />
<BundleResource Include="Resources\ethereum.png" />
<BundleResource Include="Resources\litecoin.png" />
</ItemGroup>
<ItemGroup>
<Reference Include="System" />
Expand Down
3 changes: 1 addition & 2 deletions VisualChallenge/VisualChallenge/App.xaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8" ?>
<Application xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="VisualChallenge.App">
<Application.Resources>

</Application.Resources>
</Application>
3 changes: 2 additions & 1 deletion VisualChallenge/VisualChallenge/App.xaml.cs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ public partial class App : Application
public App()
{
InitializeComponent();

MainPage = new AppShell();
//MainPage = new VisualChallengePage();
}

protected override void OnStart()
Expand Down
85 changes: 59 additions & 26 deletions VisualChallenge/VisualChallenge/AppShell.xaml
Original file line number Diff line number Diff line change
@@ -1,41 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<Shell xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:VisualChallenge"
RouteHost="companyname.com"
RouteScheme="app"
Route="VisualChallenge"
FlyoutBehavior="Disabled"
Title="VisualChallenge"
x:Class="VisualChallenge.AppShell"
Visual="Material"
>

<Shell
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:VisualChallenge"
RouteHost="companyname.com"
RouteScheme="app"
Route="VisualChallenge"
FlyoutBehavior="Disabled"
Title="VisualChallenge"
x:Class="VisualChallenge.AppShell"
Visual="Material">
<!--
Styles and Resources
-->
<Shell.Resources>
<ResourceDictionary>
<Color x:Key="NavigationPrimary">#2196F3</Color>
<Style x:Key="BaseStyle" TargetType="Element">
<!--<Color x:Key="NavigationPrimary">#2455e7</Color>-->
<Style
x:Key="BaseStyle"
TargetType="Element">
<!--
<Setter Property="Shell.ShellBackgroundColor" Value="{StaticResource NavigationPrimary}" />
<Setter Property="Shell.ShellForegroundColor" Value="White" />
<Setter Property="Shell.ShellTitleColor" Value="White" />
<Setter Property="Shell.ShellForegroundColor" Value="#2455e7" />
<Setter Property="Shell.ShellTitleColor" Value="#2455e7" />
<Setter Property="Shell.ShellDisabledColor" Value="#B4FFFFFF" />
<Setter Property="Shell.ShellUnselectedColor" Value="#95FFFFFF" />
<Setter Property="Shell.ShellTabBarBackgroundColor" Value="{StaticResource NavigationPrimary}" />
<Setter Property="Shell.ShellTabBarForegroundColor" Value="White"/>
<Setter Property="Shell.ShellTabBarUnselectedColor" Value="#95FFFFFF"/>
<Setter Property="Shell.ShellTabBarTitleColor" Value="White"/>
<Setter Property="Shell.ShellTabBarTitleColor" Value="White"/>-->
</Style>
<Style TargetType="ShellItem" BasedOn="{StaticResource BaseStyle}" />
<Style
TargetType="ShellItem"
BasedOn="{StaticResource BaseStyle}" />
</ResourceDictionary>
</Shell.Resources>

<FlyoutItem>
<Tab>
<ShellContent ContentTemplate="{DataTemplate local:VisualChallengePage}"/>
</Tab>
</FlyoutItem>

<ShellItem>
<ShellSection
Title="Prices"
Icon="tab_feed">
<ShellContent>
<local:VisualChallengePage />
</ShellContent>
</ShellSection>
<ShellSection
Title="Accounts"
Icon="tab_feed">
<ShellContent>
<local:VisualChallengePage />
</ShellContent>
</ShellSection>
<ShellSection
Title="Alerts"
Icon="tab_feed">
<ShellContent>
<local:VisualChallengePage />
</ShellContent>
</ShellSection>
<ShellSection
Title="Invite"
Icon="tab_feed">
<ShellContent>
<local:VisualChallengePage />
</ShellContent>
</ShellSection>
<ShellSection
Title="Settings"
Icon="tab_feed">
<ShellContent>
<local:VisualChallengePage />
</ShellContent>
</ShellSection>
</ShellItem>
</Shell>
9 changes: 4 additions & 5 deletions VisualChallenge/VisualChallenge/AppShell.xaml.cs
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
using System;
using System.Collections.Generic;

using Xamarin.Forms;
using Xamarin.Forms;
using Xamarin.Forms.PlatformConfiguration.iOSSpecific;

namespace VisualChallenge
{
public partial class AppShell : Xamarin.Forms.Shell
public partial class AppShell : Shell
{
public AppShell()
{
InitializeComponent();
On<Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true);
}
}
}
150 changes: 150 additions & 0 deletions VisualChallenge/VisualChallenge/Controls/MyCollectionView.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="VisualChallenge.Controls.MyCollectionView">
<ContentView.Content>
<Frame
HeightRequest="380"
BackgroundColor="White"
BorderColor="Silver"
CornerRadius="20"
Padding="0">
<StackLayout>
<Grid
Padding="10,20"
Margin="0">
<Grid.RowDefinitions>
<RowDefinition
Height="25" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition
Width="4*" />
<ColumnDefinition
Width="1*" />
</Grid.ColumnDefinitions>
<Label
x:Name="Title"
Grid.Column="0"
Margin="20,0"
Text="Following"
TextColor="Black"
FontSize="20"
FontAttributes="Bold"
VerticalOptions="Center"
HorizontalOptions="Start" />
<Image
Grid.Column="1"
Margin="0,0,20,0"
HeightRequest="20"
WidthRequest="20"
Source="tab_feed"
VerticalOptions="Center"
HorizontalOptions="End" />
</Grid>
<BoxView
BackgroundColor="#FCF7F7"
HeightRequest="1"
HorizontalOptions="FillAndExpand"
Margin="0" />
<CollectionView
BackgroundColor="White"
ItemsSource="{Binding Coins}">
<CollectionView.ItemTemplate>
<DataTemplate>
<Grid
Padding="15">
<Grid.RowDefinitions>
<RowDefinition
Height="20" />
<RowDefinition
Height="20" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition
Width="1*" />
<ColumnDefinition
Width="2*" />
<ColumnDefinition
Width="1*" />
</Grid.ColumnDefinitions>
<Image
Grid.RowSpan="2"
Grid.Column="0"
Grid.Row="0"
Source="{Binding Image}"
Aspect="AspectFit"
HeightRequest="40"
WidthRequest="40"
HorizontalOptions="Center" />
<Label
Grid.Column="1"
Grid.Row="0"
Text="{Binding Name}"
FontAttributes="Bold" />
<Label
Grid.Column="1"
Grid.Row="1"
TextColor="Silver"
Text="{Binding ShortName}" />
<Frame
CornerRadius="15"
Padding="0"
Grid.RowSpan="2"
VerticalOptions="Center"
BackgroundColor="#FCF7F7"
HasShadow="False"
Grid.Row="0"
Grid.Column="2">
<Label
Margin="5"
HorizontalOptions="Center"
BackgroundColor="Transparent"
TextColor="#CC5055"
FontSize="Small"
Text="{Binding Value}" />
</Frame>
</Grid>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
<BoxView
BackgroundColor="#FCF7F7"
HeightRequest="1"
HorizontalOptions="FillAndExpand" />
<Grid
Padding="10,20"
Margin="0">
<Grid.RowDefinitions>
<RowDefinition
Height="25" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition
Width="*" />
<ColumnDefinition
Width="*" />
</Grid.ColumnDefinitions>
<Label
Grid.Column="0"
Margin="20,0"
Text="View all assets"
TextColor="Silver"
FontAttributes="Bold"
VerticalOptions="Center"
HorizontalOptions="Start" />
<Label
Grid.Column="1"
Margin="0,0,20,0"
Text="&gt;"
TextColor="Silver"
HeightRequest="20"
WidthRequest="20"
VerticalOptions="Center"
HorizontalOptions="End" />
</Grid>
</StackLayout>
</Frame>
</ContentView.Content>
</ContentView>
Loading