diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dd33686 --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +# Visual Studio +[Oo]bj +[Bb]in +*.user +*.suo +*.[Cc]ache +*.bak +*.ncb +*.log +*.DS_Store +[Tt]humbs.db +_ReSharper.* +*.resharper +Ankh.NoLoad +.vs +*.designer.cs +!Resources.Designer.cs + +# Coderush +.cr/ \ No newline at end of file diff --git a/TabbedPagePlayground.sln b/TabbedPagePlayground.sln new file mode 100644 index 0000000..179603b --- /dev/null +++ b/TabbedPagePlayground.sln @@ -0,0 +1,143 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.28307.271 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TabbedPagePlayground.Android", "TabbedPagePlayground\TabbedPagePlayground.Android\TabbedPagePlayground.Android.csproj", "{205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TabbedPagePlayground.iOS", "TabbedPagePlayground\TabbedPagePlayground.iOS\TabbedPagePlayground.iOS.csproj", "{6746E0CC-203F-42D0-BCFD-4F46660A0324}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TabbedPagePlayground", "TabbedPagePlayground\TabbedPagePlayground\TabbedPagePlayground.csproj", "{2549B026-2C17-4737-8204-513C8B73CBE4}" +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 + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Ad-Hoc|Any CPU.Deploy.0 = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Ad-Hoc|iPhone.Deploy.0 = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Ad-Hoc|iPhoneSimulator.Deploy.0 = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.AppStore|Any CPU.ActiveCfg = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.AppStore|Any CPU.Build.0 = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.AppStore|Any CPU.Deploy.0 = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.AppStore|iPhone.ActiveCfg = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.AppStore|iPhone.Build.0 = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.AppStore|iPhone.Deploy.0 = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.AppStore|iPhoneSimulator.Deploy.0 = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Debug|iPhone.ActiveCfg = Debug|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Debug|iPhone.Build.0 = Debug|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Debug|iPhone.Deploy.0 = Debug|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Release|Any CPU.Build.0 = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Release|Any CPU.Deploy.0 = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Release|iPhone.ActiveCfg = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Release|iPhone.Build.0 = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Release|iPhone.Deploy.0 = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Release|iPhoneSimulator.Build.0 = Release|Any CPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Ad-Hoc|Any CPU.ActiveCfg = Ad-Hoc|iPhone + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Ad-Hoc|Any CPU.Build.0 = Ad-Hoc|iPhone + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Ad-Hoc|Any CPU.Deploy.0 = Ad-Hoc|iPhone + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Ad-Hoc|iPhone.Deploy.0 = Ad-Hoc|iPhone + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Ad-Hoc|iPhoneSimulator + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Ad-Hoc|iPhoneSimulator.Build.0 = Ad-Hoc|iPhoneSimulator + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Ad-Hoc|iPhoneSimulator.Deploy.0 = Ad-Hoc|iPhoneSimulator + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.AppStore|Any CPU.ActiveCfg = AppStore|iPhone + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.AppStore|Any CPU.Build.0 = AppStore|iPhone + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.AppStore|Any CPU.Deploy.0 = AppStore|iPhone + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.AppStore|iPhone.ActiveCfg = AppStore|iPhone + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.AppStore|iPhone.Build.0 = AppStore|iPhone + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.AppStore|iPhone.Deploy.0 = AppStore|iPhone + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.AppStore|iPhoneSimulator.ActiveCfg = AppStore|iPhoneSimulator + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.AppStore|iPhoneSimulator.Build.0 = AppStore|iPhoneSimulator + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.AppStore|iPhoneSimulator.Deploy.0 = AppStore|iPhoneSimulator + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Debug|Any CPU.Deploy.0 = Debug|iPhoneSimulator + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Debug|iPhone.ActiveCfg = Debug|iPhone + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Debug|iPhone.Build.0 = Debug|iPhone + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Debug|iPhone.Deploy.0 = Debug|iPhone + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Debug|iPhoneSimulator.Deploy.0 = Debug|iPhoneSimulator + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Release|Any CPU.ActiveCfg = Release|iPhone + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Release|Any CPU.Build.0 = Release|iPhone + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Release|Any CPU.Deploy.0 = Release|iPhone + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Release|iPhone.ActiveCfg = Release|iPhone + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Release|iPhone.Build.0 = Release|iPhone + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Release|iPhone.Deploy.0 = Release|iPhone + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator + {6746E0CC-203F-42D0-BCFD-4F46660A0324}.Release|iPhoneSimulator.Deploy.0 = Release|iPhoneSimulator + {2549B026-2C17-4737-8204-513C8B73CBE4}.Ad-Hoc|Any CPU.ActiveCfg = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Ad-Hoc|Any CPU.Build.0 = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Ad-Hoc|Any CPU.Deploy.0 = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Ad-Hoc|iPhone.Deploy.0 = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Ad-Hoc|iPhoneSimulator.Build.0 = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Ad-Hoc|iPhoneSimulator.Deploy.0 = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.AppStore|Any CPU.ActiveCfg = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.AppStore|Any CPU.Build.0 = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.AppStore|Any CPU.Deploy.0 = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.AppStore|iPhone.ActiveCfg = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.AppStore|iPhone.Build.0 = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.AppStore|iPhone.Deploy.0 = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.AppStore|iPhoneSimulator.ActiveCfg = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.AppStore|iPhoneSimulator.Build.0 = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.AppStore|iPhoneSimulator.Deploy.0 = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Debug|iPhone.ActiveCfg = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Debug|iPhone.Build.0 = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Debug|iPhone.Deploy.0 = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Release|Any CPU.Build.0 = Release|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Release|Any CPU.Deploy.0 = Release|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Release|iPhone.ActiveCfg = Release|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Release|iPhone.Build.0 = Release|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Release|iPhone.Deploy.0 = Release|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Release|iPhoneSimulator.Build.0 = Release|Any CPU + {2549B026-2C17-4737-8204-513C8B73CBE4}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {DF9440D7-FA3D-49AA-9DBE-4033230F1142} + EndGlobalSection +EndGlobal diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/Assets/AboutAssets.txt b/TabbedPagePlayground/TabbedPagePlayground.Android/Assets/AboutAssets.txt new file mode 100644 index 0000000..ca673c6 --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground.Android/Assets/AboutAssets.txt @@ -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"); diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/MainActivity.cs b/TabbedPagePlayground/TabbedPagePlayground.Android/MainActivity.cs new file mode 100644 index 0000000..88f70ba --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground.Android/MainActivity.cs @@ -0,0 +1,23 @@ +using Android.App; +using Android.Content.PM; +using Android.OS; +using Xamarin.Forms; +using Xamarin.Forms.Platform.Android; +using Resource = Android.Resource; + +namespace TabbedPagePlayground.Droid +{ + [Activity(Label = "TabbedPagePlayground", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] + public class MainActivity : FormsAppCompatActivity + { + protected override void OnCreate(Bundle savedInstanceState) + { + TabLayoutResource = Resource.Layout.Tabbar; + ToolbarResource = Resource.Layout.Toolbar; + + base.OnCreate(savedInstanceState); + Forms.Init(this, savedInstanceState); + LoadApplication(new App()); + } + } +} \ No newline at end of file diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/Properties/AndroidManifest.xml b/TabbedPagePlayground/TabbedPagePlayground.Android/Properties/AndroidManifest.xml new file mode 100644 index 0000000..4555d25 --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground.Android/Properties/AndroidManifest.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/Properties/AssemblyInfo.cs b/TabbedPagePlayground/TabbedPagePlayground.Android/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..d4ff8a8 --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground.Android/Properties/AssemblyInfo.cs @@ -0,0 +1,34 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Android.App; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("App17.Android")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("App17.Android")] +[assembly: AssemblyCopyright("Copyright © 2014")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] +[assembly: ComVisible(false)] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] + +// Add some common permissions, these can be removed if not needed +[assembly: UsesPermission(Android.Manifest.Permission.Internet)] +[assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)] diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/AboutResources.txt b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/AboutResources.txt new file mode 100644 index 0000000..cb30f20 --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/AboutResources.txt @@ -0,0 +1,50 @@ +Images, layout descriptions, binary blobs and string dictionaries can be included +in your application as resource files. Various Android APIs are designed to +operate on the resource IDs instead of dealing with images, strings or binary blobs +directly. + +For example, a sample Android app that contains a user interface layout (main.xml), +an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png) +would keep its resources in the "Resources" directory of the application: + +Resources/ + drawable-hdpi/ + icon.png + + drawable-ldpi/ + icon.png + + drawable-mdpi/ + icon.png + + layout/ + main.xml + + values/ + strings.xml + +In order to get the build system to recognize Android resources, set the build action to +"AndroidResource". The native Android APIs do not operate directly with filenames, but +instead operate on resource IDs. When you compile an Android application that uses resources, +the build system will package the resources for distribution and generate a class called +"Resource" that contains the tokens for each one of the resources included. For example, +for the above Resources layout, this is what the Resource class would expose: + +public class Resource { + public class drawable { + public const int icon = 0x123; + } + + public class layout { + public const int main = 0x456; + } + + public class strings { + public const int first_string = 0xabc; + public const int second_string = 0xbcd; + } +} + +You would then use R.drawable.icon to reference the drawable/icon.png file, or Resource.layout.main +to reference the layout/main.xml file, or Resource.strings.first_string to reference the first +string in the dictionary file values/strings.xml. diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/drawable/cog.png b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/drawable/cog.png new file mode 100644 index 0000000..69e31c0 Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/drawable/cog.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/drawable/info.png b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/drawable/info.png new file mode 100644 index 0000000..aadd9d3 Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/drawable/info.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/layout/Tabbar.axml b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/layout/Tabbar.axml new file mode 100644 index 0000000..ad1f87d --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/layout/Tabbar.axml @@ -0,0 +1,11 @@ + + diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/layout/Toolbar.axml b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/layout/Toolbar.axml new file mode 100644 index 0000000..aabd0a3 --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/layout/Toolbar.axml @@ -0,0 +1,9 @@ + + diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-anydpi-v26/icon.xml b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-anydpi-v26/icon.xml new file mode 100644 index 0000000..88d1d0a --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-anydpi-v26/icon.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-anydpi-v26/icon_round.xml b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-anydpi-v26/icon_round.xml new file mode 100644 index 0000000..88d1d0a --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-anydpi-v26/icon_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-hdpi/icon.png b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-hdpi/icon.png new file mode 100644 index 0000000..4623ca2 Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-hdpi/icon.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-hdpi/launcher_foreground.png b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-hdpi/launcher_foreground.png new file mode 100644 index 0000000..a89e5bb Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-hdpi/launcher_foreground.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-mdpi/icon.png b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-mdpi/icon.png new file mode 100644 index 0000000..9b1d25e Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-mdpi/icon.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-mdpi/launcher_foreground.png b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-mdpi/launcher_foreground.png new file mode 100644 index 0000000..431a8a0 Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-mdpi/launcher_foreground.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-xhdpi/icon.png b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-xhdpi/icon.png new file mode 100644 index 0000000..844dfe5 Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-xhdpi/icon.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-xhdpi/launcher_foreground.png b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-xhdpi/launcher_foreground.png new file mode 100644 index 0000000..9e9e4f8 Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-xhdpi/launcher_foreground.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-xxhdpi/icon.png b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-xxhdpi/icon.png new file mode 100644 index 0000000..e20ec9a Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-xxhdpi/icon.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-xxhdpi/launcher_foreground.png b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-xxhdpi/launcher_foreground.png new file mode 100644 index 0000000..5f1e135 Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-xxhdpi/launcher_foreground.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-xxxhdpi/icon.png b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-xxxhdpi/icon.png new file mode 100644 index 0000000..8a08bf7 Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-xxxhdpi/icon.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png new file mode 100644 index 0000000..aca9f8d Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/values/colors.xml b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/values/colors.xml new file mode 100644 index 0000000..d9f6e0b --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/values/colors.xml @@ -0,0 +1,7 @@ + + + #FFFFFF + #3F51B5 + #303F9F + #FF4081 + diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/values/styles.xml b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/values/styles.xml new file mode 100644 index 0000000..43b0a58 --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground.Android/Resources/values/styles.xml @@ -0,0 +1,30 @@ + + + + + + + + + diff --git a/TabbedPagePlayground/TabbedPagePlayground.Android/TabbedPagePlayground.Android.csproj b/TabbedPagePlayground/TabbedPagePlayground.Android/TabbedPagePlayground.Android.csproj new file mode 100644 index 0000000..b17ee0b --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground.Android/TabbedPagePlayground.Android.csproj @@ -0,0 +1,106 @@ + + + + Debug + AnyCPU + {205D9B5D-BDF0-48FF-8597-9310CA9C3BA9} + {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + {c9e5eea5-ca05-42a1-839b-61506e0a37df} + Library + TabbedPagePlayground.Droid + TabbedPagePlayground.Android + True + Resources\Resource.designer.cs + Resource + Properties\AndroidManifest.xml + Resources + Assets + false + v8.1 + Xamarin.Android.Net.AndroidClientHandler + + + + + true + portable + false + bin\Debug + DEBUG; + prompt + 4 + None + + + true + pdbonly + true + bin\Release + prompt + 4 + true + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {2549B026-2C17-4737-8204-513C8B73CBE4} + TabbedPagePlayground + + + + + + + + + + \ No newline at end of file diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/AppDelegate.cs b/TabbedPagePlayground/TabbedPagePlayground.iOS/AppDelegate.cs new file mode 100644 index 0000000..9acf3d4 --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground.iOS/AppDelegate.cs @@ -0,0 +1,31 @@ +using Foundation; +using UIKit; +using Xamarin.Forms; +using Xamarin.Forms.Platform.iOS; + +[assembly: ResolutionGroupName("AppEffects")] + +namespace TabbedPagePlayground.iOS +{ + // The UIApplicationDelegate for the application. This class is responsible for launching the + // User Interface of the application, as well as listening (and optionally responding) to + // application events from iOS. + [Register("AppDelegate")] + public partial class AppDelegate : FormsApplicationDelegate + { + // + // This method is invoked when the application has loaded and is ready to run. In this + // method you should instantiate the window, load the UI into it and then make the window + // visible. + // + // You have 17 seconds to return from this method, or iOS will terminate your application. + // + public override bool FinishedLaunching(UIApplication app, NSDictionary options) + { + Forms.Init(); + LoadApplication(new App()); + + return base.FinishedLaunching(app, options); + } + } +} \ No newline at end of file diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..98f4d03 --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,117 @@ +{ + "images": [ + { + "scale": "2x", + "size": "20x20", + "idiom": "iphone", + "filename": "Icon40.png" + }, + { + "scale": "3x", + "size": "20x20", + "idiom": "iphone", + "filename": "Icon60.png" + }, + { + "scale": "2x", + "size": "29x29", + "idiom": "iphone", + "filename": "Icon58.png" + }, + { + "scale": "3x", + "size": "29x29", + "idiom": "iphone", + "filename": "Icon87.png" + }, + { + "scale": "2x", + "size": "40x40", + "idiom": "iphone", + "filename": "Icon80.png" + }, + { + "scale": "3x", + "size": "40x40", + "idiom": "iphone", + "filename": "Icon120.png" + }, + { + "scale": "2x", + "size": "60x60", + "idiom": "iphone", + "filename": "Icon120.png" + }, + { + "scale": "3x", + "size": "60x60", + "idiom": "iphone", + "filename": "Icon180.png" + }, + { + "scale": "1x", + "size": "20x20", + "idiom": "ipad", + "filename": "Icon20.png" + }, + { + "scale": "2x", + "size": "20x20", + "idiom": "ipad", + "filename": "Icon40.png" + }, + { + "scale": "1x", + "size": "29x29", + "idiom": "ipad", + "filename": "Icon29.png" + }, + { + "scale": "2x", + "size": "29x29", + "idiom": "ipad", + "filename": "Icon58.png" + }, + { + "scale": "1x", + "size": "40x40", + "idiom": "ipad", + "filename": "Icon40.png" + }, + { + "scale": "2x", + "size": "40x40", + "idiom": "ipad", + "filename": "Icon80.png" + }, + { + "scale": "1x", + "size": "76x76", + "idiom": "ipad", + "filename": "Icon76.png" + }, + { + "scale": "2x", + "size": "76x76", + "idiom": "ipad", + "filename": "Icon152.png" + }, + { + "scale": "2x", + "size": "83.5x83.5", + "idiom": "ipad", + "filename": "Icon167.png" + }, + { + "scale": "1x", + "size": "1024x1024", + "idiom": "ios-marketing", + "filename": "Icon1024.png" + } + ], + "properties": {}, + "info": { + "version": 1, + "author": "xcode" + } +} \ No newline at end of file diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png new file mode 100644 index 0000000..9174c98 Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png new file mode 100644 index 0000000..9c60a17 Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png new file mode 100644 index 0000000..448d6ef Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png new file mode 100644 index 0000000..8524768 Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png new file mode 100644 index 0000000..60a6470 Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png new file mode 100644 index 0000000..45268a6 Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png new file mode 100644 index 0000000..6a6c77a Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png new file mode 100644 index 0000000..cc7edcf Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png new file mode 100644 index 0000000..1ad04f0 Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png new file mode 100644 index 0000000..2dd5262 Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png new file mode 100644 index 0000000..b058cae Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png new file mode 100644 index 0000000..02e47a2 Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png new file mode 100644 index 0000000..4954a4b Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Entitlements.plist b/TabbedPagePlayground/TabbedPagePlayground.iOS/Entitlements.plist new file mode 100644 index 0000000..e9a3005 --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground.iOS/Entitlements.plist @@ -0,0 +1,7 @@ + + + + + + + diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Info.plist b/TabbedPagePlayground/TabbedPagePlayground.iOS/Info.plist new file mode 100644 index 0000000..c686fe4 --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground.iOS/Info.plist @@ -0,0 +1,38 @@ + + + + + UIDeviceFamily + + 1 + 2 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + MinimumOSVersion + 8.0 + CFBundleDisplayName + App17 + CFBundleIdentifier + com.companyname.App17 + CFBundleVersion + 1.0 + UILaunchStoryboardName + LaunchScreen + CFBundleName + App17 + XSAppIconAssets + Assets.xcassets/AppIcon.appiconset + + diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Main.cs b/TabbedPagePlayground/TabbedPagePlayground.iOS/Main.cs new file mode 100644 index 0000000..cbed336 --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground.iOS/Main.cs @@ -0,0 +1,15 @@ +using UIKit; + +namespace TabbedPagePlayground.iOS +{ + public class Application + { + // This is the main entry point of the application. + private static void Main(string[] args) + { + // if you want to use a different Application Delegate class from "AppDelegate" + // you can specify it here. + UIApplication.Main(args, null, "AppDelegate"); + } + } +} \ No newline at end of file diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Properties/AssemblyInfo.cs b/TabbedPagePlayground/TabbedPagePlayground.iOS/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..4d918dc --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground.iOS/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("App17.iOS")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("App17.iOS")] +[assembly: AssemblyCopyright("Copyright © 2014")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("72bdc44f-c588-44f3-b6df-9aace7daafdd")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/Default-568h@2x.png b/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/Default-568h@2x.png new file mode 100644 index 0000000..26c6461 Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/Default-568h@2x.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/Default-Portrait.png b/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/Default-Portrait.png new file mode 100644 index 0000000..5d0d1ab Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/Default-Portrait.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/Default-Portrait@2x.png b/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/Default-Portrait@2x.png new file mode 100644 index 0000000..0ee2688 Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/Default-Portrait@2x.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/Default.png b/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/Default.png new file mode 100644 index 0000000..b74643c Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/Default.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/Default@2x.png b/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/Default@2x.png new file mode 100644 index 0000000..dbd6bd3 Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/Default@2x.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/LaunchScreen.storyboard b/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/LaunchScreen.storyboard new file mode 100644 index 0000000..a639c2f --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/LaunchScreen.storyboard @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/cog.png b/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/cog.png new file mode 100644 index 0000000..eff7f5e Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/cog.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/info.png b/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/info.png new file mode 100644 index 0000000..11d2084 Binary files /dev/null and b/TabbedPagePlayground/TabbedPagePlayground.iOS/Resources/info.png differ diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/TabbedPagePlayground.iOS.csproj b/TabbedPagePlayground/TabbedPagePlayground.iOS/TabbedPagePlayground.iOS.csproj new file mode 100644 index 0000000..9cc760b --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground.iOS/TabbedPagePlayground.iOS.csproj @@ -0,0 +1,170 @@ + + + + Debug + iPhoneSimulator + 8.0.30703 + 2.0 + {6746E0CC-203F-42D0-BCFD-4F46660A0324} + {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + {6143fdea-f3c2-4a09-aafa-6e230626515e} + Exe + TabbedPagePlayground.iOS + Resources + TabbedPagePlayground.iOS + NSUrlSessionHandler + + + + + true + full + false + bin\iPhoneSimulator\Debug + DEBUG + prompt + 4 + false + x86_64 + None + true + + + none + true + bin\iPhoneSimulator\Release + prompt + 4 + None + x86_64 + false + + + true + full + false + bin\iPhone\Debug + DEBUG + prompt + 4 + false + ARM64 + iPhone Developer + true + Entitlements.plist + + + none + true + bin\iPhone\Release + prompt + 4 + ARM64 + false + iPhone Developer + Entitlements.plist + + + none + True + bin\iPhone\Ad-Hoc + prompt + 4 + False + ARM64 + True + Automatic:AdHoc + iPhone Distribution + Entitlements.plist + + + none + True + bin\iPhone\AppStore + prompt + 4 + False + ARM64 + Automatic:AppStore + iPhone Distribution + Entitlements.plist + + + + + + + + + + + + + + + + false + + + false + + + false + + + false + + + false + + + false + + + false + + + false + + + false + + + false + + + false + + + false + + + false + + + false + + + + + + + + + + + + + + + {2549B026-2C17-4737-8204-513C8B73CBE4} + TabbedPagePlayground + + + + + + + + + \ No newline at end of file diff --git a/TabbedPagePlayground/TabbedPagePlayground.iOS/UnselectedTabColorEffect.cs b/TabbedPagePlayground/TabbedPagePlayground.iOS/UnselectedTabColorEffect.cs new file mode 100644 index 0000000..58156df --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground.iOS/UnselectedTabColorEffect.cs @@ -0,0 +1,31 @@ +using System.Linq; +using TabbedPagePlayground.iOS; +using UIKit; +using Xamarin.Forms; +using Xamarin.Forms.Platform.iOS; + +[assembly: ExportEffect(typeof(UnselectedTabColorEffect), nameof(UnselectedTabColorEffect))] + +namespace TabbedPagePlayground.iOS +{ + public class UnselectedTabColorEffect : PlatformEffect + { + protected override void OnAttached() + { + var tabBar = Container.Subviews.OfType().FirstOrDefault(); + if (tabBar == null) + { + return; + } + + tabBar.UnselectedItemTintColor = UIColor.Red; + // By default iOS sets BarTintColor to be Translucent (https://developer.apple.com/documentation/uikit/uinavigationbar/1624931-bartintcolor), + // which fades the actual color, so we need to turn it off + tabBar.Translucent = false; + } + + protected override void OnDetached() + { + } + } +} \ No newline at end of file diff --git a/TabbedPagePlayground/TabbedPagePlayground/App.xaml b/TabbedPagePlayground/TabbedPagePlayground/App.xaml new file mode 100644 index 0000000..2c02305 --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground/App.xaml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/TabbedPagePlayground/TabbedPagePlayground/App.xaml.cs b/TabbedPagePlayground/TabbedPagePlayground/App.xaml.cs new file mode 100644 index 0000000..ac47720 --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground/App.xaml.cs @@ -0,0 +1,32 @@ +using Xamarin.Forms; +using Xamarin.Forms.Xaml; + +[assembly: XamlCompilation(XamlCompilationOptions.Compile)] + +namespace TabbedPagePlayground +{ + public partial class App : Application + { + public App() + { + InitializeComponent(); + + MainPage = new MainPage(); + } + + protected override void OnResume() + { + // Handle when your app resumes + } + + protected override void OnSleep() + { + // Handle when your app sleeps + } + + protected override void OnStart() + { + // Handle when your app starts + } + } +} \ No newline at end of file diff --git a/TabbedPagePlayground/TabbedPagePlayground/InfoPage.xaml b/TabbedPagePlayground/TabbedPagePlayground/InfoPage.xaml new file mode 100644 index 0000000..b0cceaf --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground/InfoPage.xaml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/TabbedPagePlayground/TabbedPagePlayground/InfoPage.xaml.cs b/TabbedPagePlayground/TabbedPagePlayground/InfoPage.xaml.cs new file mode 100644 index 0000000..8da836e --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground/InfoPage.xaml.cs @@ -0,0 +1,14 @@ +using Xamarin.Forms; +using Xamarin.Forms.Xaml; + +namespace TabbedPagePlayground +{ + [XamlCompilation(XamlCompilationOptions.Compile)] + public partial class InfoPage : ContentPage + { + public InfoPage() + { + InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/TabbedPagePlayground/TabbedPagePlayground/MainPage.xaml b/TabbedPagePlayground/TabbedPagePlayground/MainPage.xaml new file mode 100644 index 0000000..951f5cd --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground/MainPage.xaml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/TabbedPagePlayground/TabbedPagePlayground/MainPage.xaml.cs b/TabbedPagePlayground/TabbedPagePlayground/MainPage.xaml.cs new file mode 100644 index 0000000..8e72d02 --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground/MainPage.xaml.cs @@ -0,0 +1,12 @@ +using Xamarin.Forms; + +namespace TabbedPagePlayground +{ + public partial class MainPage : TabbedPage + { + public MainPage() + { + InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/TabbedPagePlayground/TabbedPagePlayground/SettingsPage.xaml b/TabbedPagePlayground/TabbedPagePlayground/SettingsPage.xaml new file mode 100644 index 0000000..a09c60f --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground/SettingsPage.xaml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/TabbedPagePlayground/TabbedPagePlayground/SettingsPage.xaml.cs b/TabbedPagePlayground/TabbedPagePlayground/SettingsPage.xaml.cs new file mode 100644 index 0000000..5075773 --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground/SettingsPage.xaml.cs @@ -0,0 +1,14 @@ +using Xamarin.Forms; +using Xamarin.Forms.Xaml; + +namespace TabbedPagePlayground +{ + [XamlCompilation(XamlCompilationOptions.Compile)] + public partial class SettingsPage : ContentPage + { + public SettingsPage() + { + InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/TabbedPagePlayground/TabbedPagePlayground/TabbedPagePlayground.csproj b/TabbedPagePlayground/TabbedPagePlayground/TabbedPagePlayground.csproj new file mode 100644 index 0000000..73f47ee --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground/TabbedPagePlayground.csproj @@ -0,0 +1,39 @@ + + + + netstandard2.0 + + + + pdbonly + true + + + + + + + + + MSBuild:UpdateDesignTimeXaml + + + MSBuild:UpdateDesignTimeXaml + + + + + + MSBuild:Compile + + + MSBuild:Compile + + + MSBuild:Compile + + + MSBuild:Compile + + + \ No newline at end of file diff --git a/TabbedPagePlayground/TabbedPagePlayground/UnselectedTabColorEffect.cs b/TabbedPagePlayground/TabbedPagePlayground/UnselectedTabColorEffect.cs new file mode 100644 index 0000000..467ad40 --- /dev/null +++ b/TabbedPagePlayground/TabbedPagePlayground/UnselectedTabColorEffect.cs @@ -0,0 +1,12 @@ +using Xamarin.Forms; + +namespace TabbedPagePlayground +{ + public class UnselectedTabColorEffect : RoutingEffect + { + public UnselectedTabColorEffect() + : base($"AppEffects.{nameof(UnselectedTabColorEffect)}") + { + } + } +} \ No newline at end of file