Skip to content

Commit 26738b9

Browse files
committed
ListView WebAPI sample has been modified and committed
1 parent f04fcb5 commit 26738b9

File tree

98 files changed

+11334
-11367
lines changed

Some content is hidden

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

98 files changed

+11334
-11367
lines changed
Lines changed: 337 additions & 337 deletions
Large diffs are not rendered by default.

SfListViewSample/SfListViewSample.Android/Assets/AboutAssets.txt renamed to ListView_WebApiSample/ListView_WebApiSample.Android/Assets/AboutAssets.txt

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +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");
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");

SfListViewSample/SfListViewSample.Android/Assets/Pacifico-Regular.ttf renamed to ListView_WebApiSample/ListView_WebApiSample.Android/Assets/Pacifico-Regular.ttf

File renamed without changes.

SfListViewSample/SfListViewSample.Android/SfListViewSample.Android.csproj renamed to ListView_WebApiSample/ListView_WebApiSample.Android/ListView_WebApiSample.Android.csproj

Lines changed: 101 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,102 @@
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>{6167D444-3C2B-4CE9-80EE-7FC7AE1CFDEE}</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>SfListViewSample.Droid</RootNamespace>
11-
<AssemblyName>SfListViewSample.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="Newtonsoft.Json">
52-
<Version>11.0.2</Version>
53-
</PackageReference>
54-
<PackageReference Include="Syncfusion.Xamarin.SfListView">
55-
<Version>17.1.0.43</Version>
56-
</PackageReference>
57-
<PackageReference Include="Xamarin.Forms" Version="3.6.0.344457" />
58-
</ItemGroup>
59-
<ItemGroup>
60-
<Compile Include="MainActivity.cs" />
61-
<Compile Include="Resources\Resource.Designer.cs" />
62-
<Compile Include="Properties\AssemblyInfo.cs" />
63-
</ItemGroup>
64-
<ItemGroup>
65-
<AndroidAsset Include="Assets\Pacifico-Regular.ttf" />
66-
<None Include="Resources\AboutResources.txt" />
67-
<None Include="Assets\AboutAssets.txt" />
68-
<None Include="Properties\AndroidManifest.xml" />
69-
</ItemGroup>
70-
<ItemGroup>
71-
<AndroidResource Include="Resources\layout\Tabbar.axml" />
72-
<AndroidResource Include="Resources\layout\Toolbar.axml" />
73-
<AndroidResource Include="Resources\values\styles.xml" />
74-
<AndroidResource Include="Resources\values\colors.xml" />
75-
<AndroidResource Include="Resources\mipmap-anydpi-v26\icon.xml" />
76-
<AndroidResource Include="Resources\mipmap-anydpi-v26\icon_round.xml" />
77-
<AndroidResource Include="Resources\mipmap-hdpi\Icon.png" />
78-
<AndroidResource Include="Resources\mipmap-hdpi\launcher_foreground.png" />
79-
<AndroidResource Include="Resources\mipmap-mdpi\Icon.png" />
80-
<AndroidResource Include="Resources\mipmap-mdpi\launcher_foreground.png" />
81-
<AndroidResource Include="Resources\mipmap-xhdpi\Icon.png" />
82-
<AndroidResource Include="Resources\mipmap-xhdpi\launcher_foreground.png" />
83-
<AndroidResource Include="Resources\mipmap-xxhdpi\Icon.png" />
84-
<AndroidResource Include="Resources\mipmap-xxhdpi\launcher_foreground.png" />
85-
<AndroidResource Include="Resources\mipmap-xxxhdpi\Icon.png" />
86-
<AndroidResource Include="Resources\mipmap-xxxhdpi\launcher_foreground.png" />
87-
</ItemGroup>
88-
<ItemGroup>
89-
<Folder Include="Resources\drawable-hdpi\" />
90-
<Folder Include="Resources\drawable-xhdpi\" />
91-
<Folder Include="Resources\drawable-xxhdpi\" />
92-
<Folder Include="Resources\drawable-xxxhdpi\" />
93-
<Folder Include="Resources\drawable\" />
94-
</ItemGroup>
95-
<ItemGroup>
96-
<ProjectReference Include="..\SfListViewSample\SfListViewSample.csproj">
97-
<Project>{10D70768-EAE5-4820-947E-ADEF2874D8A9}</Project>
98-
<Name>SfListViewSample</Name>
99-
</ProjectReference>
100-
</ItemGroup>
101-
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
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>{6167D444-3C2B-4CE9-80EE-7FC7AE1CFDEE}</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>ListView_WebApiSample.Droid</RootNamespace>
11+
<AssemblyName>ListView_WebApiSample.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="Newtonsoft.Json">
52+
<Version>11.0.2</Version>
53+
</PackageReference>
54+
<PackageReference Include="Syncfusion.Xamarin.SfListView">
55+
<Version>17.1.0.43</Version>
56+
</PackageReference>
57+
<PackageReference Include="Xamarin.Forms" Version="3.6.0.344457" />
58+
</ItemGroup>
59+
<ItemGroup>
60+
<Compile Include="MainActivity.cs" />
61+
<Compile Include="Resources\Resource.Designer.cs" />
62+
<Compile Include="Properties\AssemblyInfo.cs" />
63+
</ItemGroup>
64+
<ItemGroup>
65+
<AndroidAsset Include="Assets\Pacifico-Regular.ttf" />
66+
<None Include="Resources\AboutResources.txt" />
67+
<None Include="Assets\AboutAssets.txt" />
68+
<None Include="Properties\AndroidManifest.xml" />
69+
</ItemGroup>
70+
<ItemGroup>
71+
<AndroidResource Include="Resources\layout\Tabbar.axml" />
72+
<AndroidResource Include="Resources\layout\Toolbar.axml" />
73+
<AndroidResource Include="Resources\values\styles.xml" />
74+
<AndroidResource Include="Resources\values\colors.xml" />
75+
<AndroidResource Include="Resources\mipmap-anydpi-v26\icon.xml" />
76+
<AndroidResource Include="Resources\mipmap-anydpi-v26\icon_round.xml" />
77+
<AndroidResource Include="Resources\mipmap-hdpi\Icon.png" />
78+
<AndroidResource Include="Resources\mipmap-hdpi\launcher_foreground.png" />
79+
<AndroidResource Include="Resources\mipmap-mdpi\Icon.png" />
80+
<AndroidResource Include="Resources\mipmap-mdpi\launcher_foreground.png" />
81+
<AndroidResource Include="Resources\mipmap-xhdpi\Icon.png" />
82+
<AndroidResource Include="Resources\mipmap-xhdpi\launcher_foreground.png" />
83+
<AndroidResource Include="Resources\mipmap-xxhdpi\Icon.png" />
84+
<AndroidResource Include="Resources\mipmap-xxhdpi\launcher_foreground.png" />
85+
<AndroidResource Include="Resources\mipmap-xxxhdpi\Icon.png" />
86+
<AndroidResource Include="Resources\mipmap-xxxhdpi\launcher_foreground.png" />
87+
</ItemGroup>
88+
<ItemGroup>
89+
<Folder Include="Resources\drawable-hdpi\" />
90+
<Folder Include="Resources\drawable-xhdpi\" />
91+
<Folder Include="Resources\drawable-xxhdpi\" />
92+
<Folder Include="Resources\drawable-xxxhdpi\" />
93+
<Folder Include="Resources\drawable\" />
94+
</ItemGroup>
95+
<ItemGroup>
96+
<ProjectReference Include="..\ListView_WebApiSample\ListView_WebApiSample.csproj">
97+
<Project>{10D70768-EAE5-4820-947E-ADEF2874D8A9}</Project>
98+
<Name>ListView_WebApiSample</Name>
99+
</ProjectReference>
100+
</ItemGroup>
101+
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
102102
</Project>

SfListViewSample/SfListViewSample.Android/SfListViewSample.Android.csproj.user renamed to ListView_WebApiSample/ListView_WebApiSample.Android/ListView_WebApiSample.Android.csproj.user

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<PropertyGroup>
4-
<SelectedDevice>Motorola XT1663</SelectedDevice>
5-
<DefaultDevice>Android_Accelerated_x86_Oreo</DefaultDevice>
6-
</PropertyGroup>
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<SelectedDevice>Motorola XT1663</SelectedDevice>
5+
<DefaultDevice>Android_Accelerated_x86_Oreo</DefaultDevice>
6+
</PropertyGroup>
77
</Project>

SfListViewSample/SfListViewSample.Android/MainActivity.cs renamed to ListView_WebApiSample/ListView_WebApiSample.Android/MainActivity.cs

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +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 SfListViewSample.Droid
11-
{
12-
[Activity(Label = "SfListViewSample", 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-
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 ListView_WebApiSample.Droid
11+
{
12+
[Activity(Label = "ListView_WebApiSample", 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+

SfListViewSample/SfListViewSample.Android/Properties/AndroidManifest.xml renamed to ListView_WebApiSample/ListView_WebApiSample.Android/Properties/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?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.SfListViewSample">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.companyname.ListView_WebApiSample">
33
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="27" />
4-
<application android:label="SfListViewSample.Android"></application>
4+
<application android:label="ListView_WebApiSample.Android"></application>
55
</manifest>

SfListViewSample/SfListViewSample.Android/Properties/AssemblyInfo.cs renamed to ListView_WebApiSample/ListView_WebApiSample.Android/Properties/AssemblyInfo.cs

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +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("SfListViewSample.Android")]
10-
[assembly: AssemblyDescription("")]
11-
[assembly: AssemblyConfiguration("")]
12-
[assembly: AssemblyCompany("")]
13-
[assembly: AssemblyProduct("SfListViewSample.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)]
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("ListView_WebApiSample.Android")]
10+
[assembly: AssemblyDescription("")]
11+
[assembly: AssemblyConfiguration("")]
12+
[assembly: AssemblyCompany("")]
13+
[assembly: AssemblyProduct("ListView_WebApiSample.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)