-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
santosh dahal
committed
Mar 6, 2020
1 parent
815ae00
commit 1afb1da
Showing
137 changed files
with
16,587 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 16 | ||
VisualStudioVersion = 16.0.29806.167 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModernDesign.Android", "ModernDesign\ModernDesign.Android\ModernDesign.Android.csproj", "{4DF5BE4B-FABE-44D6-80BE-189F4369ECF2}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModernDesign.iOS", "ModernDesign\ModernDesign.iOS\ModernDesign.iOS.csproj", "{9E7F904F-F771-4A69-A589-EC80E5F38037}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModernDesign", "ModernDesign\ModernDesign\ModernDesign.csproj", "{44332F27-C620-465C-AAD8-88BC58278102}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
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 | ||
{4DF5BE4B-FABE-44D6-80BE-189F4369ECF2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{4DF5BE4B-FABE-44D6-80BE-189F4369ECF2}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{4DF5BE4B-FABE-44D6-80BE-189F4369ECF2}.Debug|Any CPU.Deploy.0 = Debug|Any CPU | ||
{4DF5BE4B-FABE-44D6-80BE-189F4369ECF2}.Debug|iPhone.ActiveCfg = Debug|Any CPU | ||
{4DF5BE4B-FABE-44D6-80BE-189F4369ECF2}.Debug|iPhone.Build.0 = Debug|Any CPU | ||
{4DF5BE4B-FABE-44D6-80BE-189F4369ECF2}.Debug|iPhone.Deploy.0 = Debug|Any CPU | ||
{4DF5BE4B-FABE-44D6-80BE-189F4369ECF2}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU | ||
{4DF5BE4B-FABE-44D6-80BE-189F4369ECF2}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU | ||
{4DF5BE4B-FABE-44D6-80BE-189F4369ECF2}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU | ||
{4DF5BE4B-FABE-44D6-80BE-189F4369ECF2}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{4DF5BE4B-FABE-44D6-80BE-189F4369ECF2}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{4DF5BE4B-FABE-44D6-80BE-189F4369ECF2}.Release|Any CPU.Deploy.0 = Release|Any CPU | ||
{4DF5BE4B-FABE-44D6-80BE-189F4369ECF2}.Release|iPhone.ActiveCfg = Release|Any CPU | ||
{4DF5BE4B-FABE-44D6-80BE-189F4369ECF2}.Release|iPhone.Build.0 = Release|Any CPU | ||
{4DF5BE4B-FABE-44D6-80BE-189F4369ECF2}.Release|iPhone.Deploy.0 = Release|Any CPU | ||
{4DF5BE4B-FABE-44D6-80BE-189F4369ECF2}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU | ||
{4DF5BE4B-FABE-44D6-80BE-189F4369ECF2}.Release|iPhoneSimulator.Build.0 = Release|Any CPU | ||
{4DF5BE4B-FABE-44D6-80BE-189F4369ECF2}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU | ||
{9E7F904F-F771-4A69-A589-EC80E5F38037}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator | ||
{9E7F904F-F771-4A69-A589-EC80E5F38037}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator | ||
{9E7F904F-F771-4A69-A589-EC80E5F38037}.Debug|Any CPU.Deploy.0 = Debug|iPhoneSimulator | ||
{9E7F904F-F771-4A69-A589-EC80E5F38037}.Debug|iPhone.ActiveCfg = Debug|iPhone | ||
{9E7F904F-F771-4A69-A589-EC80E5F38037}.Debug|iPhone.Build.0 = Debug|iPhone | ||
{9E7F904F-F771-4A69-A589-EC80E5F38037}.Debug|iPhone.Deploy.0 = Debug|iPhone | ||
{9E7F904F-F771-4A69-A589-EC80E5F38037}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator | ||
{9E7F904F-F771-4A69-A589-EC80E5F38037}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator | ||
{9E7F904F-F771-4A69-A589-EC80E5F38037}.Debug|iPhoneSimulator.Deploy.0 = Debug|iPhoneSimulator | ||
{9E7F904F-F771-4A69-A589-EC80E5F38037}.Release|Any CPU.ActiveCfg = Release|iPhone | ||
{9E7F904F-F771-4A69-A589-EC80E5F38037}.Release|Any CPU.Build.0 = Release|iPhone | ||
{9E7F904F-F771-4A69-A589-EC80E5F38037}.Release|Any CPU.Deploy.0 = Release|iPhone | ||
{9E7F904F-F771-4A69-A589-EC80E5F38037}.Release|iPhone.ActiveCfg = Release|iPhone | ||
{9E7F904F-F771-4A69-A589-EC80E5F38037}.Release|iPhone.Build.0 = Release|iPhone | ||
{9E7F904F-F771-4A69-A589-EC80E5F38037}.Release|iPhone.Deploy.0 = Release|iPhone | ||
{9E7F904F-F771-4A69-A589-EC80E5F38037}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator | ||
{9E7F904F-F771-4A69-A589-EC80E5F38037}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator | ||
{9E7F904F-F771-4A69-A589-EC80E5F38037}.Release|iPhoneSimulator.Deploy.0 = Release|iPhoneSimulator | ||
{44332F27-C620-465C-AAD8-88BC58278102}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{44332F27-C620-465C-AAD8-88BC58278102}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{44332F27-C620-465C-AAD8-88BC58278102}.Debug|Any CPU.Deploy.0 = Debug|Any CPU | ||
{44332F27-C620-465C-AAD8-88BC58278102}.Debug|iPhone.ActiveCfg = Debug|Any CPU | ||
{44332F27-C620-465C-AAD8-88BC58278102}.Debug|iPhone.Build.0 = Debug|Any CPU | ||
{44332F27-C620-465C-AAD8-88BC58278102}.Debug|iPhone.Deploy.0 = Debug|Any CPU | ||
{44332F27-C620-465C-AAD8-88BC58278102}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU | ||
{44332F27-C620-465C-AAD8-88BC58278102}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU | ||
{44332F27-C620-465C-AAD8-88BC58278102}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU | ||
{44332F27-C620-465C-AAD8-88BC58278102}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{44332F27-C620-465C-AAD8-88BC58278102}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{44332F27-C620-465C-AAD8-88BC58278102}.Release|Any CPU.Deploy.0 = Release|Any CPU | ||
{44332F27-C620-465C-AAD8-88BC58278102}.Release|iPhone.ActiveCfg = Release|Any CPU | ||
{44332F27-C620-465C-AAD8-88BC58278102}.Release|iPhone.Build.0 = Release|Any CPU | ||
{44332F27-C620-465C-AAD8-88BC58278102}.Release|iPhone.Deploy.0 = Release|Any CPU | ||
{44332F27-C620-465C-AAD8-88BC58278102}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU | ||
{44332F27-C620-465C-AAD8-88BC58278102}.Release|iPhoneSimulator.Build.0 = Release|Any CPU | ||
{44332F27-C620-465C-AAD8-88BC58278102}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {52922614-5E65-41BF-937C-B206DF776741} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 your 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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
|
||
using Android.App; | ||
using Android.Content.PM; | ||
using Android.Runtime; | ||
using Android.Views; | ||
using Android.Widget; | ||
using Android.OS; | ||
|
||
namespace ModernDesign.Droid | ||
{ | ||
[Activity(Label = "ModernDesign", Icon = "@mipmap/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 savedInstanceState) | ||
{ | ||
TabLayoutResource = Resource.Layout.Tabbar; | ||
ToolbarResource = Resource.Layout.Toolbar; | ||
|
||
base.OnCreate(savedInstanceState); | ||
|
||
Xamarin.Essentials.Platform.Init(this, savedInstanceState); | ||
global::Xamarin.Forms.Forms.Init(this, savedInstanceState); | ||
LoadApplication(new App()); | ||
} | ||
public override void OnRequestPermissionsResult(int requestCode, string[] permissions, [GeneratedEnum] Android.Content.PM.Permission[] grantResults) | ||
{ | ||
Xamarin.Essentials.Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults); | ||
|
||
base.OnRequestPermissionsResult(requestCode, permissions, grantResults); | ||
} | ||
} | ||
} |
Oops, something went wrong.