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

Simple Login With Visual Material #55

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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.
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 @@ -4,5 +4,5 @@
<!-- The background color, preferably the same as your normal theme -->
<item android:drawable="@color/launcher_background" />
<!-- Your product logo - 144dp color version of your app icon -->
<item android:drawable="@drawable/xamagon_preview" android:gravity="center" />
<!--item android:drawable="@drawable/xamagon_preview" android:gravity="center" /-->
</layer-list>
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,29 @@
<AndroidResource Include="Resources\drawable-xxhdpi\xamagon_preview.png" />
<AndroidResource Include="Resources\drawable-xxxhdpi\xamagon_preview.png" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
<ProjectReference Include="..\VisualChallenge\VisualChallenge.csproj">
<Project>{DF343C5B-66F1-4EF5-B721-6246D8F1DC39}</Project>
<Name>VisualChallenge</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xxxhdpi\xamarinlogo.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-hdpi\xamarinlogo.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-ldpi\xamarinlogo.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-mdpi\xamarinlogo.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\xamarinlogo.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xxhdpi\xamarinlogo.png" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
</Project>
1 change: 1 addition & 0 deletions VisualChallenge/VisualChallenge.iOS/AppDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public override bool FinishedLaunching(UIApplication app, NSDictionary options)
global::Xamarin.Forms.Forms.SetFlags("Shell_Experimental", "Visual_Experimental", "CollectionView_Experimental", "FastRenderers_Experimental");
global::Xamarin.Forms.Forms.Init();
global::Xamarin.Forms.FormsMaterial.Init();

LoadApplication(new App());

return base.FinishedLaunching(app, options);
Expand Down
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 @@ -144,4 +144,13 @@
<Name>VisualChallenge</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\xamarinlogo%403x.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\xamarinlogo.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\xamarinlogo%402x.png" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion VisualChallenge/VisualChallenge/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public App()
{
InitializeComponent();

MainPage = new AppShell();
MainPage = new HomePage();
}

protected override void OnStart()
Expand Down
36 changes: 36 additions & 0 deletions VisualChallenge/VisualChallenge/HomePage.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="VisualChallenge.HomePage"
BackgroundColor="#White"
Title="Visual Challenge">
<ContentPage.Content>
<StackLayout HorizontalOptions="Center" Padding="20,100,20,0" >
<Image Source="xamarinlogo.png"
HorizontalOptions="Center"
VerticalOptions="Start"/>
<Label Text="Log In" FontSize="25" TextColor="Black" HorizontalOptions="Center"/>
<Entry Placeholder="E-Mail" BackgroundColor="#476CBF" Keyboard="Email" TextColor="White" Visual="Material"/>
<Entry Placeholder="Password" BackgroundColor="#476CBF" IsPassword="true" TextColor="White" Visual="Material" />
<Button Text="Login"
TextColor="White"
BackgroundColor="#2F237F"
BorderRadius="15"
BorderColor="White"
BorderWidth="6"
WidthRequest="200"
Visual="Material" />
<ActivityIndicator IsRunning="true"
IsVisible="true"
Visual="Material"/>
<Button Text="Sing up"
TextColor="White"
BackgroundColor="#FFA733"
BorderRadius="15"
BorderColor="White"
BorderWidth="6"
WidthRequest="200"
Visual="Material"/>
</StackLayout>
</ContentPage.Content>
</ContentPage>
21 changes: 21 additions & 0 deletions VisualChallenge/VisualChallenge/HomePage.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Xamarin.Forms;
using Xamarin.Forms.Xaml;

namespace VisualChallenge
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class HomePage : ContentPage
{
public HomePage()
{
InitializeComponent();

}
}
}
6 changes: 6 additions & 0 deletions VisualChallenge/VisualChallenge/VisualChallenge.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,10 @@
<DependentUpon>VisualChallengePage.xaml</DependentUpon>
</Compile>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="HomePage.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
</ItemGroup>
</Project>