Skip to content

Commit 8676fd8

Browse files
Sample commit
1 parent 636613c commit 8676fd8

File tree

100 files changed

+8964
-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.

100 files changed

+8964
-0
lines changed
Binary file not shown.

HandleTappedEvent/.vs/HandleTappedEvent/v15/Server/sqlite3/db.lock

Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.

HandleTappedEvent/HandleTappedEvent.sln

Lines changed: 337 additions & 0 deletions
Large diffs are not rendered by default.
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 you 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: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProjectGuid>{EC31DB23-BD64-4559-87E9-53428968DA74}</ProjectGuid>
7+
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
8+
<TemplateGuid>{c9e5eea5-ca05-42a1-839b-61506e0a37df}</TemplateGuid>
9+
<OutputType>Library</OutputType>
10+
<RootNamespace>HandleTappedEvent.Droid</RootNamespace>
11+
<AssemblyName>HandleTappedEvent.Android</AssemblyName>
12+
<AndroidApplication>True</AndroidApplication>
13+
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
14+
<AndroidResgenClass>Resource</AndroidResgenClass>
15+
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
16+
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
17+
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
18+
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk>
19+
<TargetFrameworkVersion>v8.1</TargetFrameworkVersion>
20+
<NuGetPackageImportStamp>
21+
</NuGetPackageImportStamp>
22+
</PropertyGroup>
23+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
24+
<DebugSymbols>true</DebugSymbols>
25+
<DebugType>full</DebugType>
26+
<Optimize>false</Optimize>
27+
<OutputPath>bin\Debug</OutputPath>
28+
<DefineConstants>DEBUG;</DefineConstants>
29+
<ErrorReport>prompt</ErrorReport>
30+
<WarningLevel>4</WarningLevel>
31+
<AndroidLinkMode>None</AndroidLinkMode>
32+
</PropertyGroup>
33+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
34+
<DebugSymbols>true</DebugSymbols>
35+
<DebugType>pdbonly</DebugType>
36+
<Optimize>true</Optimize>
37+
<OutputPath>bin\Release</OutputPath>
38+
<ErrorReport>prompt</ErrorReport>
39+
<WarningLevel>4</WarningLevel>
40+
<AndroidManagedSymbols>true</AndroidManagedSymbols>
41+
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
42+
</PropertyGroup>
43+
<ItemGroup>
44+
<Reference Include="Mono.Android" />
45+
<Reference Include="System" />
46+
<Reference Include="System.Core" />
47+
<Reference Include="System.Xml.Linq" />
48+
<Reference Include="System.Xml" />
49+
</ItemGroup>
50+
<ItemGroup>
51+
<PackageReference Include="Syncfusion.Xamarin.SfListView">
52+
<Version>16.3.0.21</Version>
53+
</PackageReference>
54+
<PackageReference Include="Xamarin.Android.Support.Design">
55+
<Version>25.4.0.2</Version>
56+
</PackageReference>
57+
<PackageReference Include="Xamarin.Android.Support.v4">
58+
<Version>25.4.0.2</Version>
59+
</PackageReference>
60+
<PackageReference Include="Xamarin.Android.Support.v7.AppCompat">
61+
<Version>25.4.0.2</Version>
62+
</PackageReference>
63+
<PackageReference Include="Xamarin.Android.Support.v7.CardView">
64+
<Version>25.4.0.2</Version>
65+
</PackageReference>
66+
<PackageReference Include="Xamarin.Android.Support.v7.MediaRouter">
67+
<Version>25.4.0.2</Version>
68+
</PackageReference>
69+
<PackageReference Include="Xamarin.Forms">
70+
<Version>2.4.0.280</Version>
71+
</PackageReference>
72+
</ItemGroup>
73+
<ItemGroup>
74+
<Compile Include="ItemRendererExt.cs" />
75+
<Compile Include="MainActivity.cs" />
76+
<Compile Include="Resources\Resource.Designer.cs" />
77+
<Compile Include="Properties\AssemblyInfo.cs" />
78+
</ItemGroup>
79+
<ItemGroup>
80+
<None Include="Resources\AboutResources.txt" />
81+
<None Include="Assets\AboutAssets.txt" />
82+
<None Include="Properties\AndroidManifest.xml" />
83+
</ItemGroup>
84+
<ItemGroup>
85+
<AndroidResource Include="Resources\layout\Tabbar.axml" />
86+
<AndroidResource Include="Resources\layout\Toolbar.axml" />
87+
<AndroidResource Include="Resources\values\styles.xml" />
88+
<AndroidResource Include="Resources\values\colors.xml" />
89+
<AndroidResource Include="Resources\mipmap-anydpi-v26\icon.xml" />
90+
<AndroidResource Include="Resources\mipmap-anydpi-v26\icon_round.xml" />
91+
<AndroidResource Include="Resources\mipmap-hdpi\Icon.png" />
92+
<AndroidResource Include="Resources\mipmap-hdpi\launcher_foreground.png" />
93+
<AndroidResource Include="Resources\mipmap-mdpi\Icon.png" />
94+
<AndroidResource Include="Resources\mipmap-mdpi\launcher_foreground.png" />
95+
<AndroidResource Include="Resources\mipmap-xhdpi\Icon.png" />
96+
<AndroidResource Include="Resources\mipmap-xhdpi\launcher_foreground.png" />
97+
<AndroidResource Include="Resources\mipmap-xxhdpi\Icon.png" />
98+
<AndroidResource Include="Resources\mipmap-xxhdpi\launcher_foreground.png" />
99+
<AndroidResource Include="Resources\mipmap-xxxhdpi\Icon.png" />
100+
<AndroidResource Include="Resources\mipmap-xxxhdpi\launcher_foreground.png" />
101+
</ItemGroup>
102+
<ItemGroup>
103+
<Folder Include="Resources\drawable-hdpi\" />
104+
<Folder Include="Resources\drawable-xhdpi\" />
105+
<Folder Include="Resources\drawable-xxhdpi\" />
106+
<Folder Include="Resources\drawable-xxxhdpi\" />
107+
<Folder Include="Resources\drawable\" />
108+
</ItemGroup>
109+
<ItemGroup>
110+
<ProjectReference Include="..\HandleTappedEvent\HandleTappedEvent.csproj">
111+
<Project>{6FBCD73F-C4BD-4D1C-96A4-C0F2FAFCEDDE}</Project>
112+
<Name>HandleTappedEvent</Name>
113+
</ProjectReference>
114+
</ItemGroup>
115+
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
116+
</Project>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
6+
using Android.App;
7+
using Android.Content;
8+
using Android.OS;
9+
using Android.Runtime;
10+
using Android.Views;
11+
using Android.Widget;
12+
using HandleTappedEvent;
13+
using Syncfusion.ListView.XForms.Android;
14+
using Xamarin.Forms;
15+
16+
[assembly: ExportRenderer(typeof(ListViewItemExt), typeof(ItemRendererExt))]
17+
namespace HandleTappedEvent
18+
{
19+
public class ItemRendererExt : ListViewItemRenderer
20+
{
21+
public override void OnClick(Android.Views.View view)
22+
{
23+
return;
24+
}
25+
}
26+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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 HandleTappedEvent.Droid
11+
{
12+
[Activity(Label = "HandleTappedEvent", 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 bundle)
16+
{
17+
TabLayoutResource = Resource.Layout.Tabbar;
18+
ToolbarResource = Resource.Layout.Toolbar;
19+
20+
base.OnCreate(bundle);
21+
22+
global::Xamarin.Forms.Forms.Init(this, bundle);
23+
LoadApplication(new App());
24+
}
25+
}
26+
}
27+

0 commit comments

Comments
 (0)