Skip to content
Permalink
Browse files

13

  • Loading branch information...
Dell Dell
Dell authored and Dell committed Feb 5, 2020
1 parent 85cb6e1 commit 94f9328a03d47daf9b344b2cbc41775ae24d545a
Showing with 13,311 additions and 0 deletions.
  1. +19 −0 GroupAssess.Android/Assets/AboutAssets.txt
  2. +98 −0 GroupAssess.Android/GroupAssess.Android.csproj
  3. +33 −0 GroupAssess.Android/MainActivity.cs
  4. +6 −0 GroupAssess.Android/Properties/AndroidManifest.xml
  5. +34 −0 GroupAssess.Android/Properties/AssemblyInfo.cs
  6. +50 −0 GroupAssess.Android/Resources/AboutResources.txt
  7. +11,436 −0 GroupAssess.Android/Resources/Resource.designer.cs
  8. BIN GroupAssess.Android/Resources/drawable/xamarin_logo.png
  9. +11 −0 GroupAssess.Android/Resources/layout/Tabbar.xml
  10. +9 −0 GroupAssess.Android/Resources/layout/Toolbar.xml
  11. +5 −0 GroupAssess.Android/Resources/mipmap-anydpi-v26/icon.xml
  12. +5 −0 GroupAssess.Android/Resources/mipmap-anydpi-v26/icon_round.xml
  13. BIN GroupAssess.Android/Resources/mipmap-hdpi/icon.png
  14. BIN GroupAssess.Android/Resources/mipmap-hdpi/launcher_foreground.png
  15. BIN GroupAssess.Android/Resources/mipmap-mdpi/icon.png
  16. BIN GroupAssess.Android/Resources/mipmap-mdpi/launcher_foreground.png
  17. BIN GroupAssess.Android/Resources/mipmap-xhdpi/icon.png
  18. BIN GroupAssess.Android/Resources/mipmap-xhdpi/launcher_foreground.png
  19. BIN GroupAssess.Android/Resources/mipmap-xxhdpi/icon.png
  20. BIN GroupAssess.Android/Resources/mipmap-xxhdpi/launcher_foreground.png
  21. BIN GroupAssess.Android/Resources/mipmap-xxxhdpi/icon.png
  22. BIN GroupAssess.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png
  23. +7 −0 GroupAssess.Android/Resources/values/colors.xml
  24. +30 −0 GroupAssess.Android/Resources/values/styles.xml
  25. +31 −0 GroupAssess.iOS/AppDelegate.cs
  26. +117 −0 GroupAssess.iOS/Assets.xcassets/AppIcon.appiconset/Contents.json
  27. BIN GroupAssess.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png
  28. BIN GroupAssess.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png
  29. BIN GroupAssess.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png
  30. BIN GroupAssess.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png
  31. BIN GroupAssess.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png
  32. BIN GroupAssess.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png
  33. BIN GroupAssess.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png
  34. BIN GroupAssess.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png
  35. BIN GroupAssess.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png
  36. BIN GroupAssess.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png
  37. BIN GroupAssess.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png
  38. BIN GroupAssess.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png
  39. BIN GroupAssess.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png
  40. +7 −0 GroupAssess.iOS/Entitlements.plist
  41. +147 −0 GroupAssess.iOS/GroupAssess.iOS.csproj
  42. +38 −0 GroupAssess.iOS/Info.plist
  43. +20 −0 GroupAssess.iOS/Main.cs
  44. +36 −0 GroupAssess.iOS/Properties/AssemblyInfo.cs
  45. BIN GroupAssess.iOS/Resources/Default-568h@2x.png
  46. BIN GroupAssess.iOS/Resources/Default-Portrait.png
  47. BIN GroupAssess.iOS/Resources/Default-Portrait@2x.png
  48. BIN GroupAssess.iOS/Resources/Default.png
  49. BIN GroupAssess.iOS/Resources/Default@2x.png
  50. +39 −0 GroupAssess.iOS/Resources/LaunchScreen.storyboard
  51. BIN GroupAssess.iOS/Resources/tab_about.png
  52. BIN GroupAssess.iOS/Resources/tab_about@2x.png
  53. BIN GroupAssess.iOS/Resources/tab_about@3x.png
  54. BIN GroupAssess.iOS/Resources/tab_feed.png
  55. BIN GroupAssess.iOS/Resources/tab_feed@2x.png
  56. BIN GroupAssess.iOS/Resources/tab_feed@3x.png
  57. BIN GroupAssess.iOS/Resources/xamarin_logo.png
  58. BIN GroupAssess.iOS/Resources/xamarin_logo@2x.png
  59. BIN GroupAssess.iOS/Resources/xamarin_logo@3x.png
  60. +83 −0 GroupAssess.sln
  61. +20 −0 GroupAssess/App.xaml
  62. +32 −0 GroupAssess/App.xaml.cs
  63. +3 −0 GroupAssess/AssemblyInfo.cs
  64. +18 −0 GroupAssess/GroupAssess.csproj
  65. +20 −0 GroupAssess/Models/Activity.cs
  66. +11 −0 GroupAssess/Models/Item.cs
  67. +15 −0 GroupAssess/Services/IDataStore.cs
  68. +60 −0 GroupAssess/Services/MockDataStore.cs
  69. +18 −0 GroupAssess/ViewModels/AboutViewModel.cs
  70. +56 −0 GroupAssess/ViewModels/BaseViewModel.cs
  71. +16 −0 GroupAssess/ViewModels/ItemDetailViewModel.cs
  72. +58 −0 GroupAssess/ViewModels/ItemsViewModel.cs
  73. +81 −0 GroupAssess/Views/AboutPage.xaml
  74. +18 −0 GroupAssess/Views/AboutPage.xaml.cs
  75. +63 −0 GroupAssess/Views/AddActivityPage.cs
  76. +38 −0 GroupAssess/Views/CompletedPage.cs
  77. +55 −0 GroupAssess/Views/DeleteActvityPage.cs
  78. +80 −0 GroupAssess/Views/EditActivityPage.cs
  79. +33 −0 GroupAssess/Views/GetAllActivitesPage.cs
  80. +70 −0 GroupAssess/Views/HomePage.cs
  81. +17 −0 GroupAssess/Views/ItemDetailPage.xaml
  82. +39 −0 GroupAssess/Views/ItemDetailPage.xaml.cs
  83. +56 −0 GroupAssess/Views/ItemsPage.xaml
  84. +55 −0 GroupAssess/Views/ItemsPage.xaml.cs
  85. +34 −0 GroupAssess/Views/MainPage.xaml
  86. +18 −0 GroupAssess/Views/MainPage.xaml.cs
  87. +24 −0 GroupAssess/Views/NewItemPage.xaml
  88. +42 −0 GroupAssess/Views/NewItemPage.xaml.cs
@@ -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,98 @@
<?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>{ECB95230-055A-4176-BC60-90DAF66398ED}</ProjectGuid>
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<TemplateGuid>{6968b3a4-1835-46a3-ac5c-1ae33b475983}</TemplateGuid>
<OutputType>Library</OutputType>
<RootNamespace>GroupAssess.Droid</RootNamespace>
<AssemblyName>GroupAssess.Android</AssemblyName>
<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>v9.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="sqlite-net-pcl">
<Version>1.6.292</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms" Version="4.3.0.908675" />
<PackageReference Include="Xamarin.Essentials" Version="1.3.1" />
</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\layout\Tabbar.xml" />
<AndroidResource Include="Resources\layout\Toolbar.xml" />
<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" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\GroupAssess\GroupAssess.csproj">
<Project>{6EFC661D-0360-4733-A42E-2EE12F95E78F}</Project>
<Name>GroupAssess</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
</Project>
@@ -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 GroupAssess.Droid
{
[Activity(Label = "GroupAssess", 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);
}
}
}
@@ -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.groupassess">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28" />
<application android:label="GroupAssess.Android"></application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest>
@@ -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("GroupAssess.Android")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("GroupAssess.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)]
@@ -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 94f9328

Please sign in to comment.
You can’t perform that action at this time.