Skip to content

Commit

Permalink
Font Icon Example
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigel Ferrissey committed Jul 12, 2017
1 parent c5ba7af commit b7dc78e
Show file tree
Hide file tree
Showing 52 changed files with 6,982 additions and 0 deletions.
112 changes: 112 additions & 0 deletions FontIconApp/FontIconApp.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26430.14
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FontIconApp.Android", "FontIconApp\FontIconApp.Android\FontIconApp.Android.csproj", "{A4751EF0-CF7A-4050-8448-084B87C30346}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FontIconApp", "FontIconApp\FontIconApp\FontIconApp.csproj", "{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FontIconApp.iOS", "FontIconApp\FontIconApp.iOS\FontIconApp.iOS.csproj", "{F1A00376-653E-4EEC-9D5F-D027EE67798D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
Ad-Hoc|iPhone = Ad-Hoc|iPhone
Ad-Hoc|iPhoneSimulator = Ad-Hoc|iPhoneSimulator
AppStore|Any CPU = AppStore|Any CPU
AppStore|iPhone = AppStore|iPhone
AppStore|iPhoneSimulator = AppStore|iPhoneSimulator
Debug|Any CPU = Debug|Any CPU
Debug|iPhone = Debug|iPhone
Debug|iPhoneSimulator = Debug|iPhoneSimulator
Release|Any CPU = Release|Any CPU
Release|iPhone = Release|iPhone
Release|iPhoneSimulator = Release|iPhoneSimulator
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A4751EF0-CF7A-4050-8448-084B87C30346}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Ad-Hoc|Any CPU.Deploy.0 = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Ad-Hoc|iPhone.Deploy.0 = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Ad-Hoc|iPhoneSimulator.Deploy.0 = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.AppStore|Any CPU.Build.0 = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.AppStore|Any CPU.Deploy.0 = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.AppStore|iPhone.ActiveCfg = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.AppStore|iPhone.Build.0 = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.AppStore|iPhone.Deploy.0 = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.AppStore|iPhoneSimulator.Deploy.0 = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Debug|iPhone.Build.0 = Debug|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Debug|iPhone.Deploy.0 = Debug|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Release|Any CPU.Build.0 = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Release|Any CPU.Deploy.0 = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Release|iPhone.ActiveCfg = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Release|iPhone.Build.0 = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Release|iPhone.Deploy.0 = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{A4751EF0-CF7A-4050-8448-084B87C30346}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.AppStore|Any CPU.Build.0 = Release|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.AppStore|iPhone.ActiveCfg = Release|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.AppStore|iPhone.Build.0 = Release|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.Debug|iPhone.Build.0 = Debug|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.Release|Any CPU.Build.0 = Release|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.Release|iPhone.ActiveCfg = Release|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.Release|iPhone.Build.0 = Release|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{633069C9-AB2F-4D12-BE4F-BB6CF503DCD8}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{F1A00376-653E-4EEC-9D5F-D027EE67798D}.Ad-Hoc|Any CPU.ActiveCfg = Ad-Hoc|iPhone
{F1A00376-653E-4EEC-9D5F-D027EE67798D}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
{F1A00376-653E-4EEC-9D5F-D027EE67798D}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
{F1A00376-653E-4EEC-9D5F-D027EE67798D}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Ad-Hoc|iPhoneSimulator
{F1A00376-653E-4EEC-9D5F-D027EE67798D}.Ad-Hoc|iPhoneSimulator.Build.0 = Ad-Hoc|iPhoneSimulator
{F1A00376-653E-4EEC-9D5F-D027EE67798D}.AppStore|Any CPU.ActiveCfg = AppStore|iPhone
{F1A00376-653E-4EEC-9D5F-D027EE67798D}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
{F1A00376-653E-4EEC-9D5F-D027EE67798D}.AppStore|iPhone.Build.0 = AppStore|iPhone
{F1A00376-653E-4EEC-9D5F-D027EE67798D}.AppStore|iPhoneSimulator.ActiveCfg = AppStore|iPhoneSimulator
{F1A00376-653E-4EEC-9D5F-D027EE67798D}.AppStore|iPhoneSimulator.Build.0 = AppStore|iPhoneSimulator
{F1A00376-653E-4EEC-9D5F-D027EE67798D}.Debug|Any CPU.ActiveCfg = Debug|iPhone
{F1A00376-653E-4EEC-9D5F-D027EE67798D}.Debug|iPhone.ActiveCfg = Debug|iPhone
{F1A00376-653E-4EEC-9D5F-D027EE67798D}.Debug|iPhone.Build.0 = Debug|iPhone
{F1A00376-653E-4EEC-9D5F-D027EE67798D}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{F1A00376-653E-4EEC-9D5F-D027EE67798D}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{F1A00376-653E-4EEC-9D5F-D027EE67798D}.Release|Any CPU.ActiveCfg = Release|iPhone
{F1A00376-653E-4EEC-9D5F-D027EE67798D}.Release|iPhone.ActiveCfg = Release|iPhone
{F1A00376-653E-4EEC-9D5F-D027EE67798D}.Release|iPhone.Build.0 = Release|iPhone
{F1A00376-653E-4EEC-9D5F-D027EE67798D}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{F1A00376-653E-4EEC-9D5F-D027EE67798D}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
19 changes: 19 additions & 0 deletions FontIconApp/FontIconApp/FontIconApp.Android/Assets/AboutAssets.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Any raw assets you want to be deployed with your application can be placed in
this directory (and child directories) and given a Build Action of "AndroidAsset".

These files will be deployed with you package and will be accessible using Android's
AssetManager, like this:

public class ReadAsset : Activity
{
protected override void OnCreate (Bundle bundle)
{
base.OnCreate (bundle);

InputStream input = Assets.Open ("my_asset.txt");
}
}

Additionally, some Android functions will automatically load asset files:

Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using Android.Graphics;
using FontIconApp.Droid.CustomRenderers;
using FontIconApp.UserControls;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;

[assembly: ExportRenderer(typeof(FontAwesomeLabel), typeof(FontAwesomeLabelRenderer))]

namespace FontIconApp.Droid.CustomRenderers
{
public class FontAwesomeLabelRenderer : LabelRenderer
{
protected override void OnElementChanged(ElementChangedEventArgs<Label> e)
{
base.OnElementChanged(e);
if (e.OldElement == null)
{
Control.Typeface = Typeface.CreateFromAsset(Forms.Context.Assets,
"Fonts/" + FontAwesomeLabel.FontAwesomeName + ".otf");
}
}
}
}
140 changes: 140 additions & 0 deletions FontIconApp/FontIconApp/FontIconApp.Android/FontIconApp.Android.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{A4751EF0-CF7A-4050-8448-084B87C30346}</ProjectGuid>
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>FontIconApp.Droid</RootNamespace>
<AssemblyName>FontIconApp.Android</AssemblyName>
<FileAlignment>512</FileAlignment>
<AndroidApplication>true</AndroidApplication>
<AndroidResgenFile>Resources\Resource.Designer.cs</AndroidResgenFile>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
<AndroidUseLatestPlatformSdk>true</AndroidUseLatestPlatformSdk>
<TargetFrameworkVersion>v7.1</TargetFrameworkVersion>
<AndroidStoreUncompressedFileExtensions />
<MandroidI18n />
<JavaMaximumHeapSize />
<JavaOptions />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidUseSharedRuntime>True</AndroidUseSharedRuntime>
<AndroidLinkMode>None</AndroidLinkMode>
<AndroidSupportedAbis>armeabi,armeabi-v7a,x86</AndroidSupportedAbis>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidUseSharedRuntime>False</AndroidUseSharedRuntime>
<AndroidLinkMode>SdkOnly</AndroidLinkMode>
</PropertyGroup>
<ItemGroup>
<Reference Include="FormsViewGroup, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Xamarin.Forms.2.3.4.247\lib\MonoAndroid10\FormsViewGroup.dll</HintPath>
</Reference>
<Reference Include="Mono.Android" />
<Reference Include="mscorlib" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.ObjectModel" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Xml" />
<Reference Include="Xamarin.Android.Support.Animated.Vector.Drawable, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Xamarin.Android.Support.Animated.Vector.Drawable.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.Animated.Vector.Drawable.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Android.Support.Design, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Xamarin.Android.Support.Design.23.3.0\lib\MonoAndroid43\Xamarin.Android.Support.Design.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Xamarin.Android.Support.v4.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v4.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Android.Support.v7.AppCompat, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Xamarin.Android.Support.v7.AppCompat.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v7.AppCompat.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Android.Support.v7.CardView, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Xamarin.Android.Support.v7.CardView.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v7.CardView.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Android.Support.v7.MediaRouter, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Xamarin.Android.Support.v7.MediaRouter.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v7.MediaRouter.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Android.Support.v7.RecyclerView, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Xamarin.Android.Support.v7.RecyclerView.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v7.RecyclerView.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Android.Support.Vector.Drawable, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Xamarin.Android.Support.Vector.Drawable.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.Vector.Drawable.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Xamarin.Forms.2.3.4.247\lib\MonoAndroid10\Xamarin.Forms.Core.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Platform, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Xamarin.Forms.2.3.4.247\lib\MonoAndroid10\Xamarin.Forms.Platform.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Platform.Android, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Xamarin.Forms.2.3.4.247\lib\MonoAndroid10\Xamarin.Forms.Platform.Android.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Xaml, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Xamarin.Forms.2.3.4.247\lib\MonoAndroid10\Xamarin.Forms.Xaml.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="CustomRenderers\FontAwesomeLabelRenderer.cs" />
<Compile Include="MainActivity.cs" />
<Compile Include="Resources\Resource.Designer.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<AndroidAsset Include="Assets\Fonts\FontAwesome.otf" />
<None Include="packages.config" />
<None Include="Resources\AboutResources.txt" />
<None Include="Assets\AboutAssets.txt" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\icon.png" />
<AndroidResource Include="Resources\drawable-hdpi\icon.png" />
<AndroidResource Include="Resources\drawable-xhdpi\icon.png" />
<AndroidResource Include="Resources\drawable-xxhdpi\icon.png" />
</ItemGroup>
<ItemGroup>
<None Include="Properties\AndroidManifest.xml" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\layout\Tabbar.axml" />
<AndroidResource Include="Resources\layout\Toolbar.axml" />
<AndroidResource Include="Resources\values\styles.xml" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\FontIconApp\FontIconApp.csproj">
<Project>{1d5ab271-d2a9-41e7-82e3-5628401d2816}</Project>
<Name>FontIconApp</Name>
</ProjectReference>
</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">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\..\packages\Xamarin.Android.Support.Vector.Drawable.23.3.0\build\Xamarin.Android.Support.Vector.Drawable.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Xamarin.Android.Support.Vector.Drawable.23.3.0\build\Xamarin.Android.Support.Vector.Drawable.targets'))" />
<Error Condition="!Exists('..\..\packages\Xamarin.Forms.2.3.4.247\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Xamarin.Forms.2.3.4.247\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets'))" />
</Target>
<Import Project="..\..\packages\Xamarin.Forms.2.3.4.247\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets" Condition="Exists('..\..\packages\Xamarin.Forms.2.3.4.247\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets')" />
</Project>
27 changes: 27 additions & 0 deletions FontIconApp/FontIconApp/FontIconApp.Android/MainActivity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System;

using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;

namespace FontIconApp.Droid
{
[Activity(Label = "FontIconApp", Icon = "@drawable/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
protected override void OnCreate(Bundle bundle)
{
TabLayoutResource = Resource.Layout.Tabbar;
ToolbarResource = Resource.Layout.Toolbar;

base.OnCreate(bundle);

global::Xamarin.Forms.Forms.Init(this, bundle);
LoadApplication(new App());
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="15" />
<application android:label="FontIconApp.Android"></application>
</manifest>
Loading

0 comments on commit b7dc78e

Please sign in to comment.