Skip to content

Commit 2b6467e

Browse files
author
AzureAD\HemalathaMarikumar
committed
Sample has been committed
1 parent 5bedacd commit 2b6467e

File tree

93 files changed

+15612
-0
lines changed

Some content is hidden

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

93 files changed

+15612
-0
lines changed
Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30128.74
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TextInputLayout_BorderColor.UWP", "TextInputLayout_BorderColor\TextInputLayout_BorderColor.UWP\TextInputLayout_BorderColor.UWP.csproj", "{C8D4D10E-8467-4ADE-95C9-A486C941FED4}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TextInputLayout_BorderColor.Android", "TextInputLayout_BorderColor\TextInputLayout_BorderColor.Android\TextInputLayout_BorderColor.Android.csproj", "{A4836E62-5D15-446F-93BC-4FA5DE40B337}"
9+
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TextInputLayout_BorderColor.iOS", "TextInputLayout_BorderColor\TextInputLayout_BorderColor.iOS\TextInputLayout_BorderColor.iOS.csproj", "{41E2EF08-C46B-4A95-815F-F60306873FC3}"
11+
EndProject
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TextInputLayout_BorderColor", "TextInputLayout_BorderColor\TextInputLayout_BorderColor\TextInputLayout_BorderColor.csproj", "{F759A688-155E-4D9A-8285-3FEEAEEEB257}"
13+
EndProject
14+
Global
15+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
16+
Debug|Any CPU = Debug|Any CPU
17+
Debug|ARM = Debug|ARM
18+
Debug|iPhone = Debug|iPhone
19+
Debug|iPhoneSimulator = Debug|iPhoneSimulator
20+
Debug|x64 = Debug|x64
21+
Debug|x86 = Debug|x86
22+
Release|Any CPU = Release|Any CPU
23+
Release|ARM = Release|ARM
24+
Release|iPhone = Release|iPhone
25+
Release|iPhoneSimulator = Release|iPhoneSimulator
26+
Release|x64 = Release|x64
27+
Release|x86 = Release|x86
28+
EndGlobalSection
29+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
30+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Debug|Any CPU.ActiveCfg = Debug|x86
31+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Debug|Any CPU.Build.0 = Debug|x86
32+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Debug|Any CPU.Deploy.0 = Debug|x86
33+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Debug|ARM.ActiveCfg = Debug|ARM
34+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Debug|ARM.Build.0 = Debug|ARM
35+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Debug|ARM.Deploy.0 = Debug|ARM
36+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Debug|iPhone.ActiveCfg = Debug|x86
37+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Debug|iPhone.Build.0 = Debug|x86
38+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Debug|iPhone.Deploy.0 = Debug|x86
39+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Debug|iPhoneSimulator.ActiveCfg = Debug|x86
40+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Debug|iPhoneSimulator.Build.0 = Debug|x86
41+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Debug|iPhoneSimulator.Deploy.0 = Debug|x86
42+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Debug|x64.ActiveCfg = Debug|x64
43+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Debug|x64.Build.0 = Debug|x64
44+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Debug|x64.Deploy.0 = Debug|x64
45+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Debug|x86.ActiveCfg = Debug|x86
46+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Debug|x86.Build.0 = Debug|x86
47+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Debug|x86.Deploy.0 = Debug|x86
48+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Release|Any CPU.ActiveCfg = Release|x86
49+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Release|Any CPU.Build.0 = Release|x86
50+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Release|Any CPU.Deploy.0 = Release|x86
51+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Release|ARM.ActiveCfg = Release|ARM
52+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Release|ARM.Build.0 = Release|ARM
53+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Release|ARM.Deploy.0 = Release|ARM
54+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Release|iPhone.ActiveCfg = Release|x86
55+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Release|iPhone.Build.0 = Release|x86
56+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Release|iPhone.Deploy.0 = Release|x86
57+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Release|iPhoneSimulator.ActiveCfg = Release|x86
58+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Release|iPhoneSimulator.Build.0 = Release|x86
59+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Release|iPhoneSimulator.Deploy.0 = Release|x86
60+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Release|x64.ActiveCfg = Release|x64
61+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Release|x64.Build.0 = Release|x64
62+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Release|x64.Deploy.0 = Release|x64
63+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Release|x86.ActiveCfg = Release|x86
64+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Release|x86.Build.0 = Release|x86
65+
{C8D4D10E-8467-4ADE-95C9-A486C941FED4}.Release|x86.Deploy.0 = Release|x86
66+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
67+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Debug|Any CPU.Build.0 = Debug|Any CPU
68+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
69+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Debug|ARM.ActiveCfg = Debug|Any CPU
70+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Debug|ARM.Build.0 = Debug|Any CPU
71+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Debug|ARM.Deploy.0 = Debug|Any CPU
72+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Debug|iPhone.ActiveCfg = Debug|Any CPU
73+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Debug|iPhone.Build.0 = Debug|Any CPU
74+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Debug|iPhone.Deploy.0 = Debug|Any CPU
75+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
76+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
77+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
78+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Debug|x64.ActiveCfg = Debug|Any CPU
79+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Debug|x64.Build.0 = Debug|Any CPU
80+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Debug|x64.Deploy.0 = Debug|Any CPU
81+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Debug|x86.ActiveCfg = Debug|Any CPU
82+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Debug|x86.Build.0 = Debug|Any CPU
83+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Debug|x86.Deploy.0 = Debug|Any CPU
84+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Release|Any CPU.ActiveCfg = Release|Any CPU
85+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Release|Any CPU.Build.0 = Release|Any CPU
86+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Release|Any CPU.Deploy.0 = Release|Any CPU
87+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Release|ARM.ActiveCfg = Release|Any CPU
88+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Release|ARM.Build.0 = Release|Any CPU
89+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Release|ARM.Deploy.0 = Release|Any CPU
90+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Release|iPhone.ActiveCfg = Release|Any CPU
91+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Release|iPhone.Build.0 = Release|Any CPU
92+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Release|iPhone.Deploy.0 = Release|Any CPU
93+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
94+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
95+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
96+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Release|x64.ActiveCfg = Release|Any CPU
97+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Release|x64.Build.0 = Release|Any CPU
98+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Release|x64.Deploy.0 = Release|Any CPU
99+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Release|x86.ActiveCfg = Release|Any CPU
100+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Release|x86.Build.0 = Release|Any CPU
101+
{A4836E62-5D15-446F-93BC-4FA5DE40B337}.Release|x86.Deploy.0 = Release|Any CPU
102+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Debug|Any CPU.ActiveCfg = Debug|iPhone
103+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Debug|Any CPU.Build.0 = Debug|iPhone
104+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Debug|Any CPU.Deploy.0 = Debug|iPhone
105+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Debug|ARM.ActiveCfg = Debug|iPhone
106+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Debug|ARM.Build.0 = Debug|iPhone
107+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Debug|ARM.Deploy.0 = Debug|iPhone
108+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Debug|iPhone.ActiveCfg = Debug|iPhone
109+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Debug|iPhone.Build.0 = Debug|iPhone
110+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Debug|iPhone.Deploy.0 = Debug|iPhone
111+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
112+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
113+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Debug|iPhoneSimulator.Deploy.0 = Debug|iPhoneSimulator
114+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Debug|x64.ActiveCfg = Debug|iPhone
115+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Debug|x64.Build.0 = Debug|iPhone
116+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Debug|x64.Deploy.0 = Debug|iPhone
117+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Debug|x86.ActiveCfg = Debug|iPhone
118+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Debug|x86.Build.0 = Debug|iPhone
119+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Debug|x86.Deploy.0 = Debug|iPhone
120+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Release|Any CPU.ActiveCfg = Release|iPhone
121+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Release|Any CPU.Build.0 = Release|iPhone
122+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Release|Any CPU.Deploy.0 = Release|iPhone
123+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Release|ARM.ActiveCfg = Release|iPhone
124+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Release|ARM.Build.0 = Release|iPhone
125+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Release|ARM.Deploy.0 = Release|iPhone
126+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Release|iPhone.ActiveCfg = Release|iPhone
127+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Release|iPhone.Build.0 = Release|iPhone
128+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Release|iPhone.Deploy.0 = Release|iPhone
129+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
130+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
131+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Release|iPhoneSimulator.Deploy.0 = Release|iPhoneSimulator
132+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Release|x64.ActiveCfg = Release|iPhone
133+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Release|x64.Build.0 = Release|iPhone
134+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Release|x64.Deploy.0 = Release|iPhone
135+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Release|x86.ActiveCfg = Release|iPhone
136+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Release|x86.Build.0 = Release|iPhone
137+
{41E2EF08-C46B-4A95-815F-F60306873FC3}.Release|x86.Deploy.0 = Release|iPhone
138+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
139+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Debug|Any CPU.Build.0 = Debug|Any CPU
140+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
141+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Debug|ARM.ActiveCfg = Debug|Any CPU
142+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Debug|ARM.Build.0 = Debug|Any CPU
143+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Debug|ARM.Deploy.0 = Debug|Any CPU
144+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Debug|iPhone.ActiveCfg = Debug|Any CPU
145+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Debug|iPhone.Build.0 = Debug|Any CPU
146+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Debug|iPhone.Deploy.0 = Debug|Any CPU
147+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
148+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
149+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
150+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Debug|x64.ActiveCfg = Debug|Any CPU
151+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Debug|x64.Build.0 = Debug|Any CPU
152+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Debug|x64.Deploy.0 = Debug|Any CPU
153+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Debug|x86.ActiveCfg = Debug|Any CPU
154+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Debug|x86.Build.0 = Debug|Any CPU
155+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Debug|x86.Deploy.0 = Debug|Any CPU
156+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Release|Any CPU.ActiveCfg = Release|Any CPU
157+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Release|Any CPU.Build.0 = Release|Any CPU
158+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Release|Any CPU.Deploy.0 = Release|Any CPU
159+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Release|ARM.ActiveCfg = Release|Any CPU
160+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Release|ARM.Build.0 = Release|Any CPU
161+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Release|ARM.Deploy.0 = Release|Any CPU
162+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Release|iPhone.ActiveCfg = Release|Any CPU
163+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Release|iPhone.Build.0 = Release|Any CPU
164+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Release|iPhone.Deploy.0 = Release|Any CPU
165+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
166+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
167+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
168+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Release|x64.ActiveCfg = Release|Any CPU
169+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Release|x64.Build.0 = Release|Any CPU
170+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Release|x64.Deploy.0 = Release|Any CPU
171+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Release|x86.ActiveCfg = Release|Any CPU
172+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Release|x86.Build.0 = Release|Any CPU
173+
{F759A688-155E-4D9A-8285-3FEEAEEEB257}.Release|x86.Deploy.0 = Release|Any CPU
174+
EndGlobalSection
175+
GlobalSection(SolutionProperties) = preSolution
176+
HideSolutionNode = FALSE
177+
EndGlobalSection
178+
GlobalSection(ExtensibilityGlobals) = postSolution
179+
SolutionGuid = {3E6B9ECD-B076-41B2-8228-B66F870FE6F8}
180+
EndGlobalSection
181+
EndGlobal
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Any raw assets you want to be deployed with your application can be placed in
2+
this directory (and child directories) and given a Build Action of "AndroidAsset".
3+
4+
These files will be deployed with your package and will be accessible using Android's
5+
AssetManager, like this:
6+
7+
public class ReadAsset : Activity
8+
{
9+
protected override void OnCreate (Bundle bundle)
10+
{
11+
base.OnCreate (bundle);
12+
13+
InputStream input = Assets.Open ("my_asset.txt");
14+
}
15+
}
16+
17+
Additionally, some Android functions will automatically load asset files:
18+
19+
Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");
Lines changed: 33 additions & 0 deletions
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 TextInputLayout_BorderColor.Droid
11+
{
12+
[Activity(Label = "TextInputLayout_BorderColor", 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="com.companyname.textinputlayout_bordercolor">
3+
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28" />
4+
<application android:label="TextInputLayout_BorderColor.Android"></application>
5+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
6+
</manifest>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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("TextInputLayout_BorderColor.Android")]
10+
[assembly: AssemblyDescription("")]
11+
[assembly: AssemblyConfiguration("")]
12+
[assembly: AssemblyCompany("")]
13+
[assembly: AssemblyProduct("TextInputLayout_BorderColor.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+
[assembly: AssemblyVersion("1.0.0.0")]
26+
[assembly: AssemblyFileVersion("1.0.0.0")]
27+
28+
// Add some common permissions, these can be removed if not needed
29+
[assembly: UsesPermission(Android.Manifest.Permission.Internet)]
30+
[assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)]
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
Images, layout descriptions, binary blobs and string dictionaries can be included
2+
in your application as resource files. Various Android APIs are designed to
3+
operate on the resource IDs instead of dealing with images, strings or binary blobs
4+
directly.
5+
6+
For example, a sample Android app that contains a user interface layout (main.xml),
7+
an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png)
8+
would keep its resources in the "Resources" directory of the application:
9+
10+
Resources/
11+
drawable-hdpi/
12+
icon.png
13+
14+
drawable-ldpi/
15+
icon.png
16+
17+
drawable-mdpi/
18+
icon.png
19+
20+
layout/
21+
main.xml
22+
23+
values/
24+
strings.xml
25+
26+
In order to get the build system to recognize Android resources, set the build action to
27+
"AndroidResource". The native Android APIs do not operate directly with filenames, but
28+
instead operate on resource IDs. When you compile an Android application that uses resources,
29+
the build system will package the resources for distribution and generate a class called
30+
"Resource" that contains the tokens for each one of the resources included. For example,
31+
for the above Resources layout, this is what the Resource class would expose:
32+
33+
public class Resource {
34+
public class drawable {
35+
public const int icon = 0x123;
36+
}
37+
38+
public class layout {
39+
public const int main = 0x456;
40+
}
41+
42+
public class strings {
43+
public const int first_string = 0xabc;
44+
public const int second_string = 0xbcd;
45+
}
46+
}
47+
48+
You would then use R.drawable.icon to reference the drawable/icon.png file, or Resource.layout.main
49+
to reference the layout/main.xml file, or Resource.strings.first_string to reference the first
50+
string in the dictionary file values/strings.xml.

0 commit comments

Comments
 (0)