Skip to content

Commit 3639ac9

Browse files
committed
Added Xamarin.Forms Hello World
1 parent 6d86296 commit 3639ac9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+13367
-0
lines changed

XamarinForms/.gitignore

+154
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
# Autosave files
2+
*~
3+
4+
# build
5+
[Oo]bj/
6+
[Bb]in/
7+
packages/
8+
TestResults/
9+
10+
# globs
11+
Makefile.in
12+
*.DS_Store
13+
*.sln.cache
14+
*.suo
15+
*.cache
16+
*.pidb
17+
*.userprefs
18+
*.usertasks
19+
config.log
20+
config.make
21+
config.status
22+
aclocal.m4
23+
install-sh
24+
autom4te.cache/
25+
*.user
26+
*.tar.gz
27+
tarballs/
28+
test-results/
29+
Thumbs.db
30+
31+
# Mac bundle stuff
32+
*.dmg
33+
*.app
34+
35+
# resharper
36+
*_Resharper.*
37+
*.Resharper
38+
39+
# dotCover
40+
*.dotCover
41+
TestResult.xml
42+
43+
# CAKE
44+
tools/*
45+
!tools/packages.config
46+
47+
# MFractor
48+
.droidres/
49+
.mfractor/
50+
51+
# fastlane specific
52+
fastlane/report.xml
53+
54+
# deliver temporary files
55+
fastlane/Preview.html
56+
57+
# snapshot generated screenshots
58+
fastlane/screenshots
59+
60+
# scan temporary files
61+
fastlane/test_output
62+
63+
.vs/
64+
Apks/
65+
**/*/Properties/AndroidManifest-*.xml
66+
67+
### Rider ###
68+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
69+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
70+
71+
# User-specific stuff
72+
.idea/**/workspace.xml
73+
.idea/**/tasks.xml
74+
.idea/**/usage.statistics.xml
75+
.idea/**/dictionaries
76+
.idea/**/shelf
77+
78+
# Generated files
79+
.idea/**/contentModel.xml
80+
81+
# Sensitive or high-churn files
82+
.idea/**/dataSources/
83+
.idea/**/dataSources.ids
84+
.idea/**/dataSources.local.xml
85+
.idea/**/sqlDataSources.xml
86+
.idea/**/dynamic.xml
87+
.idea/**/uiDesigner.xml
88+
.idea/**/dbnavigator.xml
89+
90+
# Gradle
91+
.idea/**/gradle.xml
92+
.idea/**/libraries
93+
94+
# Gradle and Maven with auto-import
95+
# When using Gradle or Maven with auto-import, you should exclude module files,
96+
# since they will be recreated, and may cause churn. Uncomment if using
97+
# auto-import.
98+
.idea/modules.xml
99+
.idea/*.iml
100+
.idea/modules
101+
*.iml
102+
*.ipr
103+
104+
# CMake
105+
cmake-build-*/
106+
107+
# Mongo Explorer plugin
108+
.idea/**/mongoSettings.xml
109+
110+
# File-based project format
111+
*.iws
112+
113+
# IntelliJ
114+
out/
115+
116+
# mpeltonen/sbt-idea plugin
117+
.idea_modules/
118+
119+
# JIRA plugin
120+
atlassian-ide-plugin.xml
121+
122+
# Cursive Clojure plugin
123+
.idea/replstate.xml
124+
125+
# Crashlytics plugin (for Android Studio and IntelliJ)
126+
com_crashlytics_export_strings.xml
127+
crashlytics.properties
128+
crashlytics-build.properties
129+
fabric.properties
130+
131+
# Editor-based Rest Client
132+
.idea/httpRequests
133+
134+
# Android studio 3.1+ serialized cache file
135+
.idea/caches/build_file_checksums.ser
136+
137+
coverage-results/
138+
139+
# End of https://www.gitignore.io/api/rider
140+
141+
node_modules/
142+
!fontello/config.json
143+
fontello/
144+
fontello-*/
145+
146+
# visual studio code
147+
.vscode/*
148+
!.vscode/settings.json
149+
!.vscode/tasks.json
150+
!.vscode/launch.json
151+
!.vscode/extensions.json
152+
153+
# HotReload
154+
!tools/Xamarin.Forms.HotReload.Observer.exe
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
using System;
2+
3+
using Android.App;
4+
using Android.Content.PM;
5+
using Android.Runtime;
6+
using Android.Views;
7+
using Android.Widget;
8+
using Android.OS;
9+
10+
namespace XamarinForms.Droid
11+
{
12+
[Activity(Label = "XamarinForms", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
13+
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
14+
{
15+
protected override void OnCreate(Bundle savedInstanceState)
16+
{
17+
TabLayoutResource = Resource.Layout.Tabbar;
18+
ToolbarResource = Resource.Layout.Toolbar;
19+
20+
base.OnCreate(savedInstanceState);
21+
22+
Xamarin.Essentials.Platform.Init(this, savedInstanceState);
23+
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
24+
LoadApplication(new App());
25+
}
26+
public override void OnRequestPermissionsResult(int requestCode, string[] permissions, [GeneratedEnum] Android.Content.PM.Permission[] grantResults)
27+
{
28+
Xamarin.Essentials.Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults);
29+
30+
base.OnRequestPermissionsResult(requestCode, permissions, grantResults);
31+
}
32+
}
33+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="xamarin_forms.xamarin_forms">
3+
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28" />
4+
<application android:label="XamarinForms.Android"></application>
5+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
6+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
using Android.App;
5+
6+
// General Information about an assembly is controlled through the following
7+
// set of attributes. Change these attribute values to modify the information
8+
// associated with an assembly.
9+
[assembly: AssemblyTitle("XamarinForms.Android")]
10+
[assembly: AssemblyDescription("")]
11+
[assembly: AssemblyConfiguration("")]
12+
[assembly: AssemblyCompany("")]
13+
[assembly: AssemblyProduct("XamarinForms.Android")]
14+
[assembly: AssemblyCopyright("Copyright © 2014")]
15+
[assembly: AssemblyTrademark("")]
16+
[assembly: AssemblyCulture("")]
17+
[assembly: ComVisible(false)]
18+
19+
// Version information for an assembly consists of the following four values:
20+
//
21+
// Major Version
22+
// Minor Version
23+
// Build Number
24+
// Revision
25+
//
26+
// You can specify all the values or you can default the Build and Revision Numbers
27+
// by using the '*' as shown below:
28+
// [assembly: AssemblyVersion("1.0.*")]
29+
[assembly: AssemblyVersion("1.0.0.0")]
30+
[assembly: AssemblyFileVersion("1.0.0.0")]
31+
32+
// Add some common permissions, these can be removed if not needed
33+
[assembly: UsesPermission(Android.Manifest.Permission.Internet)]
34+
[assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)]

0 commit comments

Comments
 (0)