Skip to content
Permalink
Browse files
Add project files.
  • Loading branch information
clark234 committed Apr 11, 2022
1 parent 902581d commit 5378c10f1ff8690c837f8b11caae97e7dfa904c6
Showing with 31,428 additions and 0 deletions.
  1. +83 −0 App3.sln
  2. +96 −0 App3/App3.Android/App3.Android.csproj
  3. +19 −0 App3/App3.Android/Assets/AboutAssets.txt
  4. +28 −0 App3/App3.Android/MainActivity.cs
  5. +6 −0 App3/App3.Android/Properties/AndroidManifest.xml
  6. +30 −0 App3/App3.Android/Properties/AssemblyInfo.cs
  7. +50 −0 App3/App3.Android/Resources/AboutResources.txt
  8. +29,665 −0 App3/App3.Android/Resources/Resource.designer.cs
  9. BIN App3/App3.Android/Resources/drawable/icon_about.png
  10. BIN App3/App3.Android/Resources/drawable/icon_feed.png
  11. BIN App3/App3.Android/Resources/drawable/xamarin_logo.png
  12. +5 −0 App3/App3.Android/Resources/mipmap-anydpi-v26/icon.xml
  13. +5 −0 App3/App3.Android/Resources/mipmap-anydpi-v26/icon_round.xml
  14. BIN App3/App3.Android/Resources/mipmap-hdpi/icon.png
  15. BIN App3/App3.Android/Resources/mipmap-hdpi/launcher_foreground.png
  16. BIN App3/App3.Android/Resources/mipmap-mdpi/icon.png
  17. BIN App3/App3.Android/Resources/mipmap-mdpi/launcher_foreground.png
  18. BIN App3/App3.Android/Resources/mipmap-xhdpi/icon.png
  19. BIN App3/App3.Android/Resources/mipmap-xhdpi/launcher_foreground.png
  20. BIN App3/App3.Android/Resources/mipmap-xxhdpi/icon.png
  21. BIN App3/App3.Android/Resources/mipmap-xxhdpi/launcher_foreground.png
  22. BIN App3/App3.Android/Resources/mipmap-xxxhdpi/icon.png
  23. BIN App3/App3.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png
  24. +7 −0 App3/App3.Android/Resources/values/colors.xml
  25. +18 −0 App3/App3.Android/Resources/values/styles.xml
  26. +145 −0 App3/App3.iOS/App3.iOS.csproj
  27. +31 −0 App3/App3.iOS/AppDelegate.cs
  28. +117 −0 App3/App3.iOS/Assets.xcassets/AppIcon.appiconset/Contents.json
  29. BIN App3/App3.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png
  30. BIN App3/App3.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png
  31. BIN App3/App3.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png
  32. BIN App3/App3.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png
  33. BIN App3/App3.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png
  34. BIN App3/App3.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png
  35. BIN App3/App3.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png
  36. BIN App3/App3.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png
  37. BIN App3/App3.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png
  38. BIN App3/App3.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png
  39. BIN App3/App3.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png
  40. BIN App3/App3.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png
  41. BIN App3/App3.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png
  42. +7 −0 App3/App3.iOS/Entitlements.plist
  43. +38 −0 App3/App3.iOS/Info.plist
  44. +20 −0 App3/App3.iOS/Main.cs
  45. +36 −0 App3/App3.iOS/Properties/AssemblyInfo.cs
  46. BIN App3/App3.iOS/Resources/Default-568h@2x.png
  47. BIN App3/App3.iOS/Resources/Default-Portrait.png
  48. BIN App3/App3.iOS/Resources/Default-Portrait@2x.png
  49. BIN App3/App3.iOS/Resources/Default.png
  50. BIN App3/App3.iOS/Resources/Default@2x.png
  51. +39 −0 App3/App3.iOS/Resources/LaunchScreen.storyboard
  52. BIN App3/App3.iOS/Resources/icon_about.png
  53. BIN App3/App3.iOS/Resources/icon_about@2x.png
  54. BIN App3/App3.iOS/Resources/icon_about@3x.png
  55. BIN App3/App3.iOS/Resources/icon_feed.png
  56. BIN App3/App3.iOS/Resources/icon_feed@2x.png
  57. BIN App3/App3.iOS/Resources/icon_feed@3x.png
  58. BIN App3/App3.iOS/Resources/xamarin_logo.png
  59. BIN App3/App3.iOS/Resources/xamarin_logo@2x.png
  60. BIN App3/App3.iOS/Resources/xamarin_logo@3x.png
  61. +32 −0 App3/App3/App.xaml
  62. +32 −0 App3/App3/App.xaml.cs
  63. +18 −0 App3/App3/App3.csproj
  64. +140 −0 App3/App3/AppShell.xaml
  65. +24 −0 App3/App3/AppShell.xaml.cs
  66. +3 −0 App3/App3/AssemblyInfo.cs
  67. +34 −0 App3/App3/GettingStarted.txt
  68. +11 −0 App3/App3/Models/Item.cs
  69. +15 −0 App3/App3/Services/IDataStore.cs
  70. +60 −0 App3/App3/Services/MockDataStore.cs
  71. +18 −0 App3/App3/ViewModels/AboutViewModel.cs
  72. +54 −0 App3/App3/ViewModels/BaseViewModel.cs
  73. +57 −0 App3/App3/ViewModels/ItemDetailViewModel.cs
  74. +84 −0 App3/App3/ViewModels/ItemsViewModel.cs
  75. +31 −0 App3/App3/ViewModels/LoginViewModel.cs
  76. +65 −0 App3/App3/ViewModels/NewItemViewModel.cs
  77. +13 −0 App3/App3/ViewModels/RegistrationPageViewModel.cs
  78. +52 −0 App3/App3/Views/AboutPage.xaml
  79. +15 −0 App3/App3/Views/AboutPage.xaml.cs
  80. +14 −0 App3/App3/Views/ItemDetailPage.xaml
  81. +15 −0 App3/App3/Views/ItemDetailPage.xaml.cs
  82. +44 −0 App3/App3/Views/ItemsPage.xaml
  83. +32 −0 App3/App3/Views/ItemsPage.xaml.cs
  84. +20 −0 App3/App3/Views/LoginPage.xaml
  85. +21 −0 App3/App3/Views/LoginPage.xaml.cs
  86. +22 −0 App3/App3/Views/NewItemPage.xaml
  87. +21 −0 App3/App3/Views/NewItemPage.xaml.cs
  88. +16 −0 App3/App3/Views/RegistrationPage.xaml
  89. +20 −0 App3/App3/Views/RegistrationPage.xaml.cs
@@ -0,0 +1,83 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.1.32328.378
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "App3.Android", "App3\App3.Android\App3.Android.csproj", "{3FAA63F1-649C-4746-97CF-E8403BC0BB26}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "App3.iOS", "App3\App3.iOS\App3.iOS.csproj", "{1B5E810A-B129-4E9B-A9ED-D3D7AAA97617}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "App3", "App3\App3\App3.csproj", "{C12AA71C-1389-46EB-929E-F86B1FA42416}"
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
{3FAA63F1-649C-4746-97CF-E8403BC0BB26}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3FAA63F1-649C-4746-97CF-E8403BC0BB26}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3FAA63F1-649C-4746-97CF-E8403BC0BB26}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{3FAA63F1-649C-4746-97CF-E8403BC0BB26}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{3FAA63F1-649C-4746-97CF-E8403BC0BB26}.Debug|iPhone.Build.0 = Debug|Any CPU
{3FAA63F1-649C-4746-97CF-E8403BC0BB26}.Debug|iPhone.Deploy.0 = Debug|Any CPU
{3FAA63F1-649C-4746-97CF-E8403BC0BB26}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{3FAA63F1-649C-4746-97CF-E8403BC0BB26}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{3FAA63F1-649C-4746-97CF-E8403BC0BB26}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
{3FAA63F1-649C-4746-97CF-E8403BC0BB26}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3FAA63F1-649C-4746-97CF-E8403BC0BB26}.Release|Any CPU.Build.0 = Release|Any CPU
{3FAA63F1-649C-4746-97CF-E8403BC0BB26}.Release|Any CPU.Deploy.0 = Release|Any CPU
{3FAA63F1-649C-4746-97CF-E8403BC0BB26}.Release|iPhone.ActiveCfg = Release|Any CPU
{3FAA63F1-649C-4746-97CF-E8403BC0BB26}.Release|iPhone.Build.0 = Release|Any CPU
{3FAA63F1-649C-4746-97CF-E8403BC0BB26}.Release|iPhone.Deploy.0 = Release|Any CPU
{3FAA63F1-649C-4746-97CF-E8403BC0BB26}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{3FAA63F1-649C-4746-97CF-E8403BC0BB26}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{3FAA63F1-649C-4746-97CF-E8403BC0BB26}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
{1B5E810A-B129-4E9B-A9ED-D3D7AAA97617}.Debug|Any CPU.ActiveCfg = Debug|iPhone
{1B5E810A-B129-4E9B-A9ED-D3D7AAA97617}.Debug|Any CPU.Build.0 = Debug|iPhone
{1B5E810A-B129-4E9B-A9ED-D3D7AAA97617}.Debug|Any CPU.Deploy.0 = Debug|iPhone
{1B5E810A-B129-4E9B-A9ED-D3D7AAA97617}.Debug|iPhone.ActiveCfg = Debug|iPhone
{1B5E810A-B129-4E9B-A9ED-D3D7AAA97617}.Debug|iPhone.Build.0 = Debug|iPhone
{1B5E810A-B129-4E9B-A9ED-D3D7AAA97617}.Debug|iPhone.Deploy.0 = Debug|iPhone
{1B5E810A-B129-4E9B-A9ED-D3D7AAA97617}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{1B5E810A-B129-4E9B-A9ED-D3D7AAA97617}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{1B5E810A-B129-4E9B-A9ED-D3D7AAA97617}.Debug|iPhoneSimulator.Deploy.0 = Debug|iPhoneSimulator
{1B5E810A-B129-4E9B-A9ED-D3D7AAA97617}.Release|Any CPU.ActiveCfg = Release|iPhoneSimulator
{1B5E810A-B129-4E9B-A9ED-D3D7AAA97617}.Release|Any CPU.Build.0 = Release|iPhoneSimulator
{1B5E810A-B129-4E9B-A9ED-D3D7AAA97617}.Release|Any CPU.Deploy.0 = Release|iPhoneSimulator
{1B5E810A-B129-4E9B-A9ED-D3D7AAA97617}.Release|iPhone.ActiveCfg = Release|iPhone
{1B5E810A-B129-4E9B-A9ED-D3D7AAA97617}.Release|iPhone.Build.0 = Release|iPhone
{1B5E810A-B129-4E9B-A9ED-D3D7AAA97617}.Release|iPhone.Deploy.0 = Release|iPhone
{1B5E810A-B129-4E9B-A9ED-D3D7AAA97617}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{1B5E810A-B129-4E9B-A9ED-D3D7AAA97617}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{1B5E810A-B129-4E9B-A9ED-D3D7AAA97617}.Release|iPhoneSimulator.Deploy.0 = Release|iPhoneSimulator
{C12AA71C-1389-46EB-929E-F86B1FA42416}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C12AA71C-1389-46EB-929E-F86B1FA42416}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C12AA71C-1389-46EB-929E-F86B1FA42416}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{C12AA71C-1389-46EB-929E-F86B1FA42416}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{C12AA71C-1389-46EB-929E-F86B1FA42416}.Debug|iPhone.Build.0 = Debug|Any CPU
{C12AA71C-1389-46EB-929E-F86B1FA42416}.Debug|iPhone.Deploy.0 = Debug|Any CPU
{C12AA71C-1389-46EB-929E-F86B1FA42416}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{C12AA71C-1389-46EB-929E-F86B1FA42416}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{C12AA71C-1389-46EB-929E-F86B1FA42416}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
{C12AA71C-1389-46EB-929E-F86B1FA42416}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C12AA71C-1389-46EB-929E-F86B1FA42416}.Release|Any CPU.Build.0 = Release|Any CPU
{C12AA71C-1389-46EB-929E-F86B1FA42416}.Release|Any CPU.Deploy.0 = Release|Any CPU
{C12AA71C-1389-46EB-929E-F86B1FA42416}.Release|iPhone.ActiveCfg = Release|Any CPU
{C12AA71C-1389-46EB-929E-F86B1FA42416}.Release|iPhone.Build.0 = Release|Any CPU
{C12AA71C-1389-46EB-929E-F86B1FA42416}.Release|iPhone.Deploy.0 = Release|Any CPU
{C12AA71C-1389-46EB-929E-F86B1FA42416}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{C12AA71C-1389-46EB-929E-F86B1FA42416}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{C12AA71C-1389-46EB-929E-F86B1FA42416}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {EE55CD6C-0848-419F-8837-D707E17255F0}
EndGlobalSection
EndGlobal
@@ -0,0 +1,96 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{3FAA63F1-649C-4746-97CF-E8403BC0BB26}</ProjectGuid>
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<TemplateGuid>{6968b3a4-1835-46a3-ac5c-1ae33b475983}</TemplateGuid>
<OutputType>Library</OutputType>
<RootNamespace>App3.Droid</RootNamespace>
<AssemblyName>App3.Android</AssemblyName>
<Deterministic>True</Deterministic>
<AndroidApplication>True</AndroidApplication>
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
<AndroidResgenClass>Resource</AndroidResgenClass>
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk>
<TargetFrameworkVersion>v12.0</TargetFrameworkVersion>
<AndroidEnableSGenConcurrent>true</AndroidEnableSGenConcurrent>
<AndroidUseAapt2>true</AndroidUseAapt2>
<AndroidHttpClientHandlerType>Xamarin.Android.Net.AndroidClientHandler</AndroidHttpClientHandlerType>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>portable</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidLinkMode>None</AndroidLinkMode>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>portable</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidManagedSymbols>true</AndroidManagedSymbols>
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
</PropertyGroup>
<ItemGroup>
<Reference Include="Mono.Android" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Numerics" />
<Reference Include="System.Numerics.Vectors" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="5.0.0.2196" />
<PackageReference Include="Xamarin.Essentials" Version="1.7.0" />
</ItemGroup>
<ItemGroup>
<Compile Include="MainActivity.cs" />
<Compile Include="Resources\Resource.designer.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\AboutResources.txt" />
<None Include="Assets\AboutAssets.txt" />
<None Include="Properties\AndroidManifest.xml" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\values\styles.xml" />
<AndroidResource Include="Resources\values\colors.xml" />
<AndroidResource Include="Resources\mipmap-anydpi-v26\icon.xml" />
<AndroidResource Include="Resources\mipmap-anydpi-v26\icon_round.xml" />
<AndroidResource Include="Resources\mipmap-hdpi\icon.png" />
<AndroidResource Include="Resources\mipmap-hdpi\launcher_foreground.png" />
<AndroidResource Include="Resources\mipmap-mdpi\icon.png" />
<AndroidResource Include="Resources\mipmap-mdpi\launcher_foreground.png" />
<AndroidResource Include="Resources\mipmap-xhdpi\icon.png" />
<AndroidResource Include="Resources\mipmap-xhdpi\launcher_foreground.png" />
<AndroidResource Include="Resources\mipmap-xxhdpi\icon.png" />
<AndroidResource Include="Resources\mipmap-xxhdpi\launcher_foreground.png" />
<AndroidResource Include="Resources\mipmap-xxxhdpi\icon.png" />
<AndroidResource Include="Resources\mipmap-xxxhdpi\launcher_foreground.png" />
<AndroidResource Include="Resources\drawable\xamarin_logo.png" />
<AndroidResource Include="Resources\drawable\icon_about.png" />
<AndroidResource Include="Resources\drawable\icon_feed.png" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\App3\App3.csproj">
<Project>{241B3F47-A040-4917-846B-EFFF6BB01362}</Project>
<Name>App3</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
</Project>
@@ -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");
@@ -0,0 +1,28 @@
using System;

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

namespace App3.Droid
{
[Activity(Label = "App3", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize )]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
protected override void OnCreate(Bundle savedInstanceState)
{
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);
}
}
}
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.companyname.app3">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="31" />
<application android:label="App3.Android" android:theme="@style/MainTheme"></application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest>
@@ -0,0 +1,30 @@
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("App3.Android")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("App3.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
[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)]
@@ -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.

0 comments on commit 5378c10

Please sign in to comment.