Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

* Fixes compilation issues #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions MonoDroid.TimesSquare.Sample/Home.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System;
using System.Collections.Generic;
using Android.App;
using Android.Content;
using Android.Content.PM;
using Android.OS;
using Android.Views;
using Android.Widget;
using Android.App;
using Android.OS;

namespace MonoDroid.TimesSquare.Sample
{
Expand Down Expand Up @@ -55,8 +55,9 @@ protected override void OnCreate(Bundle bundle)
btnRange.Enabled = true;

var dates = new List<DateTime>();
for (int i = 0; i < 5; i++) {
dates.Add(DateTime.Now.AddDays(3*i));
for (int i = 0; i < 5; i++)
{
dates.Add(DateTime.Now.AddDays(3 * i));
}
calendar.Init(DateTime.Now, nextYear)
.InMode(CalendarPickerView.SelectionMode.Multi)
Expand All @@ -69,7 +70,7 @@ protected override void OnCreate(Bundle bundle)
btnMulti.Enabled = true;
btnRange.Enabled = false;

var dates = new List<DateTime>() {DateTime.Now.AddDays(3), DateTime.Now.AddDays(5)};
var dates = new List<DateTime>() { DateTime.Now.AddDays(3), DateTime.Now.AddDays(5) };
calendar.Init(DateTime.Now, nextYear)
.InMode(CalendarPickerView.SelectionMode.Range)
.WithSelectedDates(dates);
Expand All @@ -78,12 +79,14 @@ protected override void OnCreate(Bundle bundle)
btnDialog.Click += (s, e) =>
{
var dialogView =
(CalendarPickerView) LayoutInflater.Inflate(Resource.Layout.dialog, null, false);
(CalendarPickerView)LayoutInflater.Inflate(Resource.Layout.dialog, null, false);
dialogView.Init(DateTime.Now, nextYear);
new AlertDialog.Builder(this).SetTitle("I'm a dialog!")
.SetView(dialogView)
.SetNeutralButton("Dismiss",
(sender, args) => { }).Create().Show();
(sender, args) =>
{
}).Create().Show();
};

FindViewById<Button>(Resource.Id.done_button).Click += (s, o) =>
Expand Down
36 changes: 16 additions & 20 deletions MonoDroid.TimesSquare.Sample/MonoDroid.TimesSquare.Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>10.0.0</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{0B028F85-4259-4825-B646-FC60C2EA0041}</ProjectGuid>
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
Expand All @@ -16,14 +14,11 @@
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
<AssemblyName>MonoDroid.TimesSquare.Sample</AssemblyName>
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
<TargetFrameworkVersion>v4.3</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.2</TargetFrameworkVersion>
<AndroidSupportedAbis>armeabi,armeabi-v7a,x86</AndroidSupportedAbis>
<AndroidStoreUncompressedFileExtensions />
<MandroidI18n />
<AndroidUseLatestPlatformSdk>
</AndroidUseLatestPlatformSdk>
<JavaMaximumHeapSize />
<JavaOptions />
<JavaMaximumHeapSize>
</JavaMaximumHeapSize>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>True</DebugSymbols>
Expand All @@ -35,10 +30,8 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>False</ConsolePause>
<AndroidLinkMode>Full</AndroidLinkMode>
<AndroidUseSharedRuntime>False</AndroidUseSharedRuntime>
<AndroidLinkSkip />
<EmbedAssembliesIntoApk>True</EmbedAssembliesIntoApk>
<BundleAssemblies>False</BundleAssemblies>
<EmbedAssembliesIntoApk>False</EmbedAssembliesIntoApk>
<AndroidSupportedAbis>armeabi;armeabi-v7a;x86</AndroidSupportedAbis>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
Expand All @@ -47,8 +40,11 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>False</ConsolePause>
<AndroidUseSharedRuntime>False</AndroidUseSharedRuntime>
<AndroidLinkMode>SdkOnly</AndroidLinkMode>
<AndroidStoreUncompressedFileExtensions>
</AndroidStoreUncompressedFileExtensions>
<JavaOptions>
</JavaOptions>
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
</PropertyGroup>
<ItemGroup>
<Reference Include="Mono.Android" />
Expand All @@ -65,12 +61,6 @@
<None Include="Resources\AboutResources.txt" />
<None Include="Assets\AboutAssets.txt" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MonoDroid.TimesSquare\MonoDroid.TimesSquare.csproj">
<Project>{48288EC0-CD15-414E-9F72-7E97ECAB92A6}</Project>
<Name>MonoDroid.TimesSquare</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" />
<ItemGroup />
<ItemGroup>
Expand All @@ -85,4 +75,10 @@
<AndroidResource Include="Resources\layout\dialog.xml" />
<AndroidResource Include="Resources\values\Strings.xml" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MonoDroid.TimesSquare\MonoDroid.TimesSquare.csproj">
<Project>{48288EC0-CD15-414E-9F72-7E97ECAB92A6}</Project>
<Name>MonoDroid.TimesSquare</Name>
</ProjectReference>
</ItemGroup>
</Project>
7 changes: 4 additions & 3 deletions MonoDroid.TimesSquare.Sample/Properties/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto">
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="18" />
<application android:label="@string/app_name" android:icon="@drawable/icon" android:supportsRtl="true"></application>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto" package="com.timessqaure.sample">
<uses-sdk />
<application android:label="@string/app_name" android:icon="@drawable/icon">
</application>
</manifest>
59 changes: 28 additions & 31 deletions MonoDroid.TimesSquare.sln
Original file line number Diff line number Diff line change
@@ -1,31 +1,28 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoDroid.TimesSquare", "MonoDroid.TimesSquare\MonoDroid.TimesSquare.csproj", "{48288EC0-CD15-414E-9F72-7E97ECAB92A6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoDroid.TimesSquare.Sample", "MonoDroid.TimesSquare.Sample\MonoDroid.TimesSquare.Sample.csproj", "{0B028F85-4259-4825-B646-FC60C2EA0041}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{48288EC0-CD15-414E-9F72-7E97ECAB92A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{48288EC0-CD15-414E-9F72-7E97ECAB92A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{48288EC0-CD15-414E-9F72-7E97ECAB92A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{48288EC0-CD15-414E-9F72-7E97ECAB92A6}.Release|Any CPU.Build.0 = Release|Any CPU
{0B028F85-4259-4825-B646-FC60C2EA0041}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0B028F85-4259-4825-B646-FC60C2EA0041}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0B028F85-4259-4825-B646-FC60C2EA0041}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{0B028F85-4259-4825-B646-FC60C2EA0041}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0B028F85-4259-4825-B646-FC60C2EA0041}.Release|Any CPU.Build.0 = Release|Any CPU
{0B028F85-4259-4825-B646-FC60C2EA0041}.Release|Any CPU.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = MonoDroid.TimesSquare.Sample\MonoDroid.TimesSquare.Sample.csproj
EndGlobalSection
EndGlobal

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoDroid.TimesSquare", "MonoDroid.TimesSquare\MonoDroid.TimesSquare.csproj", "{48288EC0-CD15-414E-9F72-7E97ECAB92A6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoDroid.TimesSquare.Sample", "MonoDroid.TimesSquare.Sample\MonoDroid.TimesSquare.Sample.csproj", "{0B028F85-4259-4825-B646-FC60C2EA0041}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0B028F85-4259-4825-B646-FC60C2EA0041}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0B028F85-4259-4825-B646-FC60C2EA0041}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0B028F85-4259-4825-B646-FC60C2EA0041}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{0B028F85-4259-4825-B646-FC60C2EA0041}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0B028F85-4259-4825-B646-FC60C2EA0041}.Release|Any CPU.Build.0 = Release|Any CPU
{0B028F85-4259-4825-B646-FC60C2EA0041}.Release|Any CPU.Deploy.0 = Release|Any CPU
{48288EC0-CD15-414E-9F72-7E97ECAB92A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{48288EC0-CD15-414E-9F72-7E97ECAB92A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{48288EC0-CD15-414E-9F72-7E97ECAB92A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{48288EC0-CD15-414E-9F72-7E97ECAB92A6}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
26 changes: 9 additions & 17 deletions MonoDroid.TimesSquare/MonoDroid.TimesSquare.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>10.0.0</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{48288EC0-CD15-414E-9F72-7E97ECAB92A6}</ProjectGuid>
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
Expand All @@ -14,31 +12,28 @@
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
<AndroidResgenClass>Resource</AndroidResgenClass>
<AssemblyName>MonoDroid.TimesSquare</AssemblyName>
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
<TargetFrameworkVersion>v4.3</TargetFrameworkVersion>
<AndroidUseLatestPlatformSdk>
</AndroidUseLatestPlatformSdk>
<AndroidUseLatestPlatformSdk>False</AndroidUseLatestPlatformSdk>
<TargetFrameworkVersion>v4.2</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>True</DebugSymbols>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>False</Optimize>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>False</ConsolePause>
<ConsolePause>false</ConsolePause>
<AndroidLinkMode>None</AndroidLinkMode>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>True</Optimize>
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>False</ConsolePause>
<AndroidUseSharedRuntime>False</AndroidUseSharedRuntime>
<AndroidLinkMode>SdkOnly</AndroidLinkMode>
<ConsolePause>false</ConsolePause>
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>
<ItemGroup>
<Reference Include="Mono.Android" />
Expand Down Expand Up @@ -91,9 +86,6 @@
</ItemGroup>
<ItemGroup />
<ItemGroup>
<Content Include="Properties\AndroidManifest.xml">
<SubType>Designer</SubType>
</Content>
<AndroidResource Include="Resources\values\attrs.xml" />
<AndroidResource Include="Resources\drawable\calendar_bg_selector.xml" />
</ItemGroup>
Expand Down
5 changes: 0 additions & 5 deletions MonoDroid.TimesSquare/Properties/AndroidManifest.xml

This file was deleted.