diff options
author | Atsushi Eno <atsushieno@veritas-vos-liberabit.com> | 2013-02-07 23:47:33 +0400 |
---|---|---|
committer | Atsushi Eno <atsushieno@veritas-vos-liberabit.com> | 2013-02-07 23:47:33 +0400 |
commit | c80fd271bffc4b611c18df396dbe53c137f32657 (patch) | |
tree | 1606d60eb6dd5831a6da0dc8f30a0bb2ed5720a5 /Rx/NET/Source | |
parent | ee8ec71b734215e23937191e972de0982643dcd9 (diff) |
add android sample github API client.
Diffstat (limited to 'Rx/NET/Source')
16 files changed, 402 insertions, 1 deletions
diff --git a/Rx/NET/Source/Rx_Xamarin/Rx_Xamarin_android.sln b/Rx/NET/Source/Rx_Xamarin/Rx_Xamarin_android.sln index 1e5e288..ac5aafb 100644 --- a/Rx/NET/Source/Rx_Xamarin/Rx_Xamarin_android.sln +++ b/Rx/NET/Source/Rx_Xamarin/Rx_Xamarin_android.sln @@ -33,6 +33,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "android_Mono.Reactive.Testi EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "android_Tests.System.Reactive", "android\rx\Tests.System.Reactive\android_Tests.System.Reactive.csproj", "{73C5260F-8972-4E7C-822B-1A3A0358FA0B}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{C23266F1-B70D-414C-88CD-F5BD27F6ACE3}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GithubApiClientSample", "..\..\..\..\..\..\..\..\..\..\svn\mono\external\rx\Rx\NET\Source\Rx_Xamarin\android\GithubApiClientSample\GithubApiClientSample.csproj", "{27910E6B-04A5-46E2-9AC6-BAC2A17A504A}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -43,6 +47,10 @@ Global {00DC3654-E373-4E3F-80FE-109F795ADF1F}.Debug|Any CPU.Build.0 = Debug|Any CPU {00DC3654-E373-4E3F-80FE-109F795ADF1F}.Release|Any CPU.ActiveCfg = Release|Any CPU {00DC3654-E373-4E3F-80FE-109F795ADF1F}.Release|Any CPU.Build.0 = Release|Any CPU + {27910E6B-04A5-46E2-9AC6-BAC2A17A504A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {27910E6B-04A5-46E2-9AC6-BAC2A17A504A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {27910E6B-04A5-46E2-9AC6-BAC2A17A504A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {27910E6B-04A5-46E2-9AC6-BAC2A17A504A}.Release|Any CPU.Build.0 = Release|Any CPU {33044C7B-47A4-4113-A61A-EB429407F818}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {33044C7B-47A4-4113-A61A-EB429407F818}.Debug|Any CPU.Build.0 = Debug|Any CPU {33044C7B-47A4-4113-A61A-EB429407F818}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -123,6 +131,7 @@ Global GlobalSection(NestedProjects) = preSolution {9AF9A490-2CD2-47CE-9E01-F3A799524F58} = {5844829C-C52D-461C-B547-3A0832221259} {BC795ED9-C969-496A-8433-C47BA91CA87C} = {5844829C-C52D-461C-B547-3A0832221259} + {C23266F1-B70D-414C-88CD-F5BD27F6ACE3} = {5844829C-C52D-461C-B547-3A0832221259} {4FA878DC-6E88-43C4-B37B-8C1151CEC56F} = {9AF9A490-2CD2-47CE-9E01-F3A799524F58} {FEF62C23-10CD-4DEF-A5AE-54A8B309E970} = {9AF9A490-2CD2-47CE-9E01-F3A799524F58} {EC704077-EA31-4852-AD24-6732244174C0} = {9AF9A490-2CD2-47CE-9E01-F3A799524F58} @@ -136,6 +145,7 @@ Global {47673BC8-F954-4304-9472-2773AA5A94EB} = {BC795ED9-C969-496A-8433-C47BA91CA87C} {CB2AB716-BFCB-43BC-A03B-A3BDA427746C} = {BC795ED9-C969-496A-8433-C47BA91CA87C} {73C5260F-8972-4E7C-822B-1A3A0358FA0B} = {BC795ED9-C969-496A-8433-C47BA91CA87C} + {27910E6B-04A5-46E2-9AC6-BAC2A17A504A} = {C23266F1-B70D-414C-88CD-F5BD27F6ACE3} EndGlobalSection GlobalSection(MonoDevelopProperties) = preSolution StartupItem = android\Andr.Unit\Andr.Unit\Andr.Unit.csproj diff --git a/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Assets/AboutAssets.txt b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Assets/AboutAssets.txt new file mode 100644 index 0000000..ee39886 --- /dev/null +++ b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Assets/AboutAssets.txt @@ -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 you 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");
\ No newline at end of file diff --git a/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/GithubApiClientSample.csproj b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/GithubApiClientSample.csproj new file mode 100644 index 0000000..42f15b9 --- /dev/null +++ b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/GithubApiClientSample.csproj @@ -0,0 +1,81 @@ +<?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> + <ProductVersion>10.0.0</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{27910E6B-04A5-46E2-9AC6-BAC2A17A504A}</ProjectGuid> + <ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> + <OutputType>Library</OutputType> + <RootNamespace>GithubApiClientSample</RootNamespace> + <AndroidApplication>True</AndroidApplication> + <AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile> + <AndroidResgenClass>Resource</AndroidResgenClass> + <MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix> + <MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix> + <AssemblyName>GithubApiClientSample</AssemblyName> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>True</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>False</Optimize> + <OutputPath>bin\Debug</OutputPath> + <DefineConstants>DEBUG;</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <AndroidLinkMode>None</AndroidLinkMode> + <ConsolePause>False</ConsolePause> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>none</DebugType> + <Optimize>True</Optimize> + <OutputPath>bin\Release</OutputPath> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <ConsolePause>False</ConsolePause> + <AndroidLinkMode>SdkOnly</AndroidLinkMode> + <AndroidUseSharedRuntime>False</AndroidUseSharedRuntime> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Xml" /> + <Reference Include="System.Core" /> + <Reference Include="Mono.Android" /> + <Reference Include="System.Json" /> + </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" /> + </ItemGroup> + <ItemGroup> + <AndroidResource Include="Resources\layout\Main.axml" /> + <AndroidResource Include="Resources\values\Strings.xml" /> + <AndroidResource Include="Resources\drawable-hdpi\icon.png" /> + <AndroidResource Include="Resources\drawable-ldpi\icon.png" /> + <AndroidResource Include="Resources\drawable-mdpi\icon.png" /> + <AndroidResource Include="Resources\drawable-xhdpi\icon.png" /> + <AndroidResource Include="Resources\drawable-xxhdpi\icon.png" /> + <AndroidResource Include="Resources\layout\ListItem.axml" /> + </ItemGroup> + <Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" /> + <ItemGroup> + <ProjectReference Include="..\..\..\..\..\..\..\..\..\..\home\atsushi\svn\mono\external\rx\Rx\NET\Source\Rx_Xamarin\android\rx\System.Reactive.Core\android_System.Reactive.Core.csproj"> + <Project>{FEF62C23-10CD-4DEF-A5AE-54A8B309E970}</Project> + <Name>android_System.Reactive.Core</Name> + </ProjectReference> + <ProjectReference Include="..\..\..\..\..\..\..\..\..\..\home\atsushi\svn\mono\external\rx\Rx\NET\Source\Rx_Xamarin\android\rx\System.Reactive.Interfaces\android_System.Reactive.Interfaces.csproj"> + <Project>{4FA878DC-6E88-43C4-B37B-8C1151CEC56F}</Project> + <Name>android_System.Reactive.Interfaces</Name> + </ProjectReference> + <ProjectReference Include="..\..\..\..\..\..\..\..\..\..\home\atsushi\svn\mono\external\rx\Rx\NET\Source\Rx_Xamarin\android\rx\System.Reactive.Linq\android_System.Reactive.Linq.csproj"> + <Project>{EC704077-EA31-4852-AD24-6732244174C0}</Project> + <Name>android_System.Reactive.Linq</Name> + </ProjectReference> + </ItemGroup> +</Project>
\ No newline at end of file diff --git a/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/MainActivity.cs b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/MainActivity.cs new file mode 100644 index 0000000..224315d --- /dev/null +++ b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/MainActivity.cs @@ -0,0 +1,66 @@ +#define REACTIVE +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Json; +using System.Net; +using System.Reactive; +using System.Reactive.Linq; + +using Android.App; +using Android.Content; +using Android.Runtime; +using Android.Views; +using Android.Widget; +using Android.OS; + +namespace GithubApiClientSample +{ + [Activity (Label = "GithubApiClientSample", MainLauncher = true)] + public class MainActivity : ListActivity + { + protected override void OnCreate (Bundle bundle) + { + base.OnCreate (bundle); + + var baseDir = Path.Combine (Application.ApplicationInfo.DataDir, "image_cache"); + if (!Directory.Exists (baseDir)) + Directory.CreateDirectory (baseDir); + + var data = new List<IDictionary<string,object>> (); + var urls = new Dictionary<Uri,List<string>> (); + var getUrl = new Uri ("https://api.github.com/users/mono/repos"); + var hr = new HttpWebRequest (getUrl); + var req = Observable.FromAsyncPattern<WebResponse> (hr.BeginGetResponse, hr.EndGetResponse); + Observable.Defer (req).Subscribe (v => { + var json = (IEnumerable<JsonValue>) JsonValue.Load (v.GetResponseStream ()); + json.Cast<JsonObject> ().ToList ().ForEach (item => { + var uri = new Uri ((string) ((JsonObject) item ["owner"])["avatar_url"]); + var file = Path.Combine (baseDir, ((int) item ["id"]) + new FileInfo (uri.LocalPath).Extension); + if (!urls.ContainsKey (uri)) + urls.Add (uri, new List<string> () {file}); + else + urls [uri].Add (file); + data.Add (new JavaDictionary<string,object> () { {"Text", item ["description"]}, {"Name", item ["name"]}, {"Icon", Path.Combine (baseDir, file) }}); + urls.ToList ().ForEach (p => { + var iwc = new WebClient (); + iwc.DownloadDataCompleted += (isender, ie) => p.Value.ForEach (s => { + if (ie.Result != null) + using (var fs = File.Create (s)) + fs.Write (ie.Result, 0, ie.Result.Length); + }); + iwc.DownloadDataAsync (p.Key); + }); + }); + + var from = new string [] {"Text", "Name", "Icon"}; + var to = new int [] { Resource.Id.textMessage, Resource.Id.textName, Resource.Id.iconView}; + + this.RunOnUiThread (() => { + ListAdapter = new SimpleAdapter (this, data, Resource.Layout.ListItem, from, to); + }); + }); + } + } +} diff --git a/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Properties/AssemblyInfo.cs b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..757ab88 --- /dev/null +++ b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Properties/AssemblyInfo.cs @@ -0,0 +1,28 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using Android.App; + +// Information about this assembly is defined by the following attributes. +// Change them to the values specific to your project. + +[assembly: AssemblyTitle("GithubApiClientSample")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("")] +[assembly: AssemblyCopyright("atsushi")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". +// The form "{Major}.{Minor}.*" will automatically update the build and revision, +// and "{Major}.{Minor}.{Build}.*" will update just the revision. + +[assembly: AssemblyVersion("1.0.0")] + +// The following attributes are used to specify the signing key for the assembly, +// if desired. See the Mono documentation for more information about signing. + +//[assembly: AssemblyDelaySign(false)] +//[assembly: AssemblyKeyFile("")] + diff --git a/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/AboutResources.txt b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/AboutResources.txt new file mode 100755 index 0000000..10f52d4 --- /dev/null +++ b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/AboutResources.txt @@ -0,0 +1,44 @@ +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.axml), +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/ + icon.png + + layout/ + main.axml + + 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 "R" +(this is an Android convention) that contains the tokens for each one of the resources +included. For example, for the above Resources layout, this is what the R class would expose: + +public class R { + 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 R.layout.main +to reference the layout/main.axml file, or R.strings.first_string to reference the first +string in the dictionary file values/strings.xml. diff --git a/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/Resource.designer.cs b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/Resource.designer.cs new file mode 100644 index 0000000..5eed766 --- /dev/null +++ b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/Resource.designer.cs @@ -0,0 +1,102 @@ +#pragma warning disable 1591 +// ------------------------------------------------------------------------------ +// <autogenerated> +// This code was generated by a tool. +// Mono Runtime Version: 4.0.30319.17020 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// </autogenerated> +// ------------------------------------------------------------------------------ + +[assembly: Android.Runtime.ResourceDesignerAttribute("GithubApiClientSample.Resource", IsApplication=true)] + +namespace GithubApiClientSample +{ + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")] + public partial class Resource + { + + Resource() + { + global::Android.Runtime.ResourceIdManager.UpdateIdValues(); + } + + public static void UpdateIdValues() + { + } + + public partial class Attribute + { + + private Attribute() + { + } + } + + public partial class Drawable + { + + // aapt resource value: 0x7f020000 + public const int icon = 2130837504; + + private Drawable() + { + } + } + + public partial class Id + { + + // aapt resource value: 0x7f050000 + public const int iconView = 2131034112; + + // aapt resource value: 0x7f050001 + public const int linearLayout1 = 2131034113; + + // aapt resource value: 0x7f050004 + public const int listView = 2131034116; + + // aapt resource value: 0x7f050003 + public const int textMessage = 2131034115; + + // aapt resource value: 0x7f050002 + public const int textName = 2131034114; + + private Id() + { + } + } + + public partial class Layout + { + + // aapt resource value: 0x7f030000 + public const int ListItem = 2130903040; + + // aapt resource value: 0x7f030001 + public const int Main = 2130903041; + + private Layout() + { + } + } + + public partial class String + { + + // aapt resource value: 0x7f040001 + public const int app_name = 2130968577; + + // aapt resource value: 0x7f040000 + public const int hello = 2130968576; + + private String() + { + } + } + } +} +#pragma warning restore 1591 diff --git a/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/drawable-hdpi/icon.png b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/drawable-hdpi/icon.png Binary files differnew file mode 100755 index 0000000..2e6ef76 --- /dev/null +++ b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/drawable-hdpi/icon.png diff --git a/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/drawable-ldpi/icon.png b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/drawable-ldpi/icon.png Binary files differnew file mode 100755 index 0000000..183f309 --- /dev/null +++ b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/drawable-ldpi/icon.png diff --git a/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/drawable-mdpi/icon.png b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/drawable-mdpi/icon.png Binary files differnew file mode 100755 index 0000000..edefb8b --- /dev/null +++ b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/drawable-mdpi/icon.png diff --git a/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/drawable-xhdpi/icon.png b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/drawable-xhdpi/icon.png Binary files differnew file mode 100755 index 0000000..de4bbc0 --- /dev/null +++ b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/drawable-xhdpi/icon.png diff --git a/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/drawable-xxhdpi/icon.png b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/drawable-xxhdpi/icon.png Binary files differnew file mode 100755 index 0000000..5e5182b --- /dev/null +++ b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/drawable-xxhdpi/icon.png diff --git a/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/layout/ListItem.axml b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/layout/ListItem.axml new file mode 100755 index 0000000..afab54f --- /dev/null +++ b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/layout/ListItem.axml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + <ImageView + android:src="@android:drawable/ic_menu_gallery" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/iconView" + android:layout_marginRight="0.0dp" + android:padding="10dp" /> + <LinearLayout + android:orientation="vertical" + android:minWidth="25px" + android:minHeight="25px" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:id="@+id/linearLayout1"> + <TextView + android:text="Large Text" + android:textAppearance="?android:attr/textAppearanceLarge" + android:id="@+id/textName" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + <TextView + android:text="Small Text" + android:textAppearance="?android:attr/textAppearanceSmall" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:id="@+id/textMessage" /> + </LinearLayout> +</LinearLayout>
\ No newline at end of file diff --git a/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/layout/Main.axml b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/layout/Main.axml new file mode 100755 index 0000000..72dea65 --- /dev/null +++ b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/layout/Main.axml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:minWidth="25px" + android:minHeight="25px"> + <ListView + android:minWidth="25px" + android:minHeight="25px" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:id="@+id/listView" /> +</LinearLayout>
\ No newline at end of file diff --git a/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/values/Strings.xml b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/values/Strings.xml new file mode 100755 index 0000000..f7c46de --- /dev/null +++ b/Rx/NET/Source/Rx_Xamarin/android/GithubApiClientSample/Resources/values/Strings.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <string name="hello">Hello World, Click Me!</string> + <string name="app_name">AndroidTest4</string> +</resources> diff --git a/Rx/NET/Source/Rx_Xamarin/android/Makefile b/Rx/NET/Source/Rx_Xamarin/android/Makefile index 35746ed..d2ecc18 100644 --- a/Rx/NET/Source/Rx_Xamarin/android/Makefile +++ b/Rx/NET/Source/Rx_Xamarin/android/Makefile @@ -2,7 +2,7 @@ all: MonoDroid.Dialog Andr.Unit MonoDroid.Dialog: - git clone git://github.com/kevinmcmahon/MonoDroid.Dialog.git + git clone git://github.com/atsushieno/MonoDroid.Dialog.git Andr.Unit: git clone git://github.com/pjcollins/Andr.Unit.git |