{"id":553,"date":"2019-05-01T09:16:41","date_gmt":"2019-05-01T00:16:41","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2019\/05\/01\/xamarinforms\/"},"modified":"2019-05-01T09:16:41","modified_gmt":"2019-05-01T00:16:41","slug":"xamarinforms","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2019\/05\/01\/xamarinforms\/","title":{"rendered":"Xamarin.Forms \u30d5\u30a1\u30a4\u30eb\u9078\u629e"},"content":{"rendered":"<p><a href=\"https:\/\/www.amazon.co.jp\/Xamarin%E3%82%A8%E3%82%AD%E3%82%B9%E3%83%91%E3%83%BC%E3%83%88%E9%A4%8A%E6%88%90%E8%AA%AD%E6%9C%AC-Software-Design-plus-%E9%A4%8A%E6%88%90%E8%AA%AD%E6%9C%AC%E7%B7%A8%E9%9B%86%E9%83%A8\/dp\/4774188956\/ref=as_li_ss_il?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&amp;keywords=xamarin&amp;qid=1556669691&amp;s=gateway&amp;sr=8-10&amp;linkCode=li2&amp;tag=typea09-22&amp;linkId=65cf8764f84e15f1ae4204af1d0abf17\" target=\"_blank\"><img decoding=\"async\" border=\"0\" src=\"\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=4774188956&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22\"><\/a><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=li2&amp;o=9&amp;a=4774188956\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\" \/><\/p>\n<ol>\n<li><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2019\/04\/06\/google_app_engine_java_standard_spring_boot\">Google App Engine Java Standard + Spring Boot \u74b0\u5883\u69cb\u7bc9<\/a>\n<li>\n<p><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2019\/04\/06\/google_app_engine_java_standard_spring_boot_thymeleaf\">Spring Boot\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3 Thymeleaf\u3092\u9069\u7528<\/a><\/p>\n<li>\n<p><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2019\/04\/06\/google_app_engine_java_spring_bootvuejs\">Spring Boot\u306bVue.js\u3092\u5229\u7528\u3059\u308b<\/a><\/p>\n<li>\n<p><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2019\/04\/20\/google_app_engine_java_spring_bootvuetifyajax\">Spring Boot\u306bVuetify\u5c0e\u5165\u304b\u3089\u30af\u30ed\u30b9\u30c9\u30e1\u30a4\u30f3Ajax\u901a\u4fe1<\/a><\/p>\n<li>\n<p><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2019\/04\/24\/google_app_engine_java_spring_bootvuetify_gae\">Spring Boot+Vuetify GAE\u3078\u30c7\u30d7\u30ed\u30a4\u3001\u52d5\u4f5c\u78ba\u8a8d<\/a><\/p>\n<li>\n<p><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2019\/04\/24\/visual_studio2019_xamarinformsios\">Xamarin.Forms\u30a2\u30d7\u30ea\u3092iOS\u7528\u306b\u30d3\u30eb\u30c9<\/a><\/p>\n<li>\n<p><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2019\/04\/28\/xamarinforms_http\">Xamarin.Forms \u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u306e\u8868\u793a\u3068 Http\u901a\u4fe1<\/a><\/p>\n<li>\n<p><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2019\/04\/29\/google_app_engine_java_spring_bootvuetify_json\">Spring Boot+Vuetify \u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3068JSON\u3067\u7d50\u679c\u3092\u8fd4\u3059<\/a><\/p>\n<\/li>\n<li>\n<p>Google <a href=\"https:\/\/www.typea.info\/blog\/index.php\/2019\/04\/30\/google_app_enginejavaspring_bootvuetifygoogle_cloud_vision_apiocr\">Google Cloud Vision \u3067OCR\u3002Vuetify\u304b\u3089SpringBoot\u7d4c\u7531\u3067\u547c\u3073\u51fa\u3057<\/a><\/p>\n<\/li>\n<\/ol>\n<p>Vuetify \u304b\u3089\u3001\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3001Google Cloud Vision \u3092\u4f7f\u7528\u3057\u3066\u3001OCR\u6a5f\u80fd\u306e\u691c\u8a3c\u307e\u3067\u5b9f\u65bd\u3002<\/p>\n<p>\u6b21\u306f\u3001Xamarin\u5074\u3067\u540c\u7b49\u306e\u6a5f\u80fd\u3092\u5b9f\u73fe\u3057\u305f\u3044\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u9078\u629e\u6a5f\u80fd\u3002<\/p>\n<p>\u3069\u3046\u3084\u3089\u3001Xamarin.Forms\u6a19\u6e96\u3067\u306f\u7528\u610f\u3055\u308c\u3066\u3044\u306a\u3055\u305d\u3046\u3060\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/xamarin\/XamarinComponents#popular-plugins\">Xamarin \u30dd\u30d4\u30e5\u30e9\u30fc\u30d7\u30e9\u30b0\u30a4\u30f3<\/a>\u304b\u3089\u63a2\u3059\u3002(\u305f\u3060\u3057\u3001\u73fe\u6642\u70b9\u3067<a href=\"https:\/\/github.com\/xamarin\/XamarinComponents#popular-plugins\">URL<\/a>\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u53e4\u3044\u305f\u3081\u3001\u65b0\u3057\u3044\u3082\u306e\u3092\u9078\u629e\u3059\u308b)<\/p>\n<h2>1.\u30d5\u30a1\u30a4\u30eb\u9078\u629e\u30d7\u30e9\u30b0\u30a4\u30f3<\/h2>\n<h3>1.1 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p><a href=\"https:\/\/www.nuget.org\/packages\/Xamarin.Plugin.FilePicker\/2.0.135\">https:\/\/www.nuget.org\/packages\/Xamarin.Plugin.FilePicker\/2.0.135<\/a><\/p>\n<p>NuGet\u3067\u3001Xamarin.Plugin.FilePicker \u3092\u691c\u7d22\u3057\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Xamarin-FileUpload_1550\/xamarin_filepicker_nuget.png\"><img loading=\"lazy\" decoding=\"async\" width=\"563\" height=\"232\" title=\"xamarin_filepicker_nuget\" style=\"display: inline; background-image: none;\" alt=\"xamarin_filepicker_nuget\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Xamarin-FileUpload_1550\/xamarin_filepicker_nuget_thumb.png\" border=\"0\"><\/a><\/p>\n<p>\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306e\u8aac\u660e\u3060\u304c\u3001\u4ee5\u4e0b\u306e\u30b5\u30a4\u30c8\u306e\u624b\u9806\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u3002<\/p>\n<p><a href=\"https:\/\/www.c-sharpcorner.com\/article\/how-to-create-file-picker-in-xamarin-forms\/\">https:\/\/www.c-sharpcorner.com\/article\/how-to-create-file-picker-in-xamarin-forms\/<\/a><\/p>\n<h3>1.2 Android\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\u3092\u8ffd\u8a18<\/h3>\n<p>Android\u30d7\u30ed\u30b8\u30a7\u30af\u30c8 &#8211; Properties &#8211; AndroidManifest.xml\u306b\u3001use-permission \u306e\u4e0b\u8a182\u884c\u3001READ_EXTERNAL_STORAGE\u3001WRITE_EXTERNAL_STORAGE\u3092\u8ffd\u8a18\u3002<\/p>\n<p><pre class=\"pretyprint\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;manifest xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\" android:versionCode=\"1\" android:versionName=\"1.0\" package=\"com.companyname.FavoPhrase\" android:installLocation=\"preferExternal\"&gt;\r\n  &lt;uses-sdk android:minSdkVersion=\"19\" android:targetSdkVersion=\"27\" \/&gt;\r\n  &lt;uses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\" \/&gt;\r\n  &lt;uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" \/&gt;\r\n  &lt;application android:label=\"FavoPhrase.Android\"&gt;&lt;\/application&gt;\r\n&lt;\/manifest&gt;<\/pre>\n<p><a href=\"https:\/\/docs.microsoft.com\/ja-jp\/xamarin\/android\/app-fundamentals\/permissions?tabs=windows\">https:\/\/docs.microsoft.com\/ja-jp\/xamarin\/android\/app-fundamentals\/permissions?tabs=windows<\/a><\/p>\n<h2>2.\u5b9f\u88c5<\/h2>\n<h3>2.1 \u547c\u3073\u51fa\u3057\u30dc\u30bf\u30f3\u306e\u8ffd\u52a0<\/h3>\n<p><pre class=\"prettyprint linenums\">&lt;Button Margin=\"0,10,0,0\" Text=\"Pick File\"\r\n        Command=\"{Binding FilePickCommand}\"\r\n        BackgroundColor=\"{StaticResource Primary}\"\r\n        TextColor=\"White\"\/&gt;\r\n<\/pre>\n<h3>2.2 ViewModel<\/h3>\n<p>\u30dc\u30bf\u30f3\u62bc\u4e0b\u6642\u306e\u30b3\u30de\u30f3\u30c9\u306e\u5b9a\u7fa9\u3001\u9078\u629e\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u540d\u3092<a href=\"https:\/\/www.typea.info\/blog\/index.php\/2019\/04\/28\/xamarinforms_http\">\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u8868\u793a\u3055\u305b\u308b\u3002<\/a><\/p>\n<p><pre class=\"prettyprint linenums\">using System;\r\nusing System.Windows.Input;\r\nusing System.Diagnostics;\r\n\r\nusing Xamarin.Forms;\r\nusing System.Net.Http;\r\nusing Plugin.FilePicker;\r\n\r\nnamespace FavoPhrase.ViewModels\r\n{\r\n    public class AboutViewModel : BaseViewModel\r\n    {\r\n        public AboutViewModel()\r\n        {\r\n            Title = \"About\";\r\n            FilePickCommand = new Command(FilePick);\r\n        }\r\n\r\n        private async void FilePick()\r\n        {\r\n            var file = await CrossFilePicker.Current.PickFile();\r\n\r\n            if (file != null)\r\n            {\r\n                await Page.DisplayAlert(\"Selected File\", file.FileName, \"OK\");\r\n            }\r\n        }\r\n        public ICommand FilePickCommand { get; }\r\n        public Page Page\r\n        {\r\n            get;\r\n            set;\r\n        }\r\n    }\r\n}<\/pre>\n<h2>3.\u5b9f\u884c<\/h2>\n<h3>3.1 Android<\/h3>\n<p>Google Drive\u542b\u3080\u69d8\u3005\u306a\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3067\u304d\u308b\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Xamarin-FileUpload_1550\/xamarin_filepicker_android.png\"><img loading=\"lazy\" decoding=\"async\" width=\"209\" height=\"379\" title=\"xamarin_filepicker_android\" style=\"display: inline; background-image: none;\" alt=\"xamarin_filepicker_android\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Xamarin-FileUpload_1550\/xamarin_filepicker_android_thumb.png\" border=\"0\"><\/a><\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Xamarin-FileUpload_1550\/xamarin_filepicker_android2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"206\" height=\"376\" title=\"xamarin_filepicker_android2\" style=\"display: inline; background-image: none;\" alt=\"xamarin_filepicker_android2\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Xamarin-FileUpload_1550\/xamarin_filepicker_android2_thumb.png\" border=\"0\"><\/a><\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Xamarin-FileUpload_1550\/xamarin_filepicker_android3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"208\" height=\"384\" title=\"xamarin_filepicker_android3\" style=\"display: inline; background-image: none;\" alt=\"xamarin_filepicker_android3\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Xamarin-FileUpload_1550\/xamarin_filepicker_android3_thumb.png\" border=\"0\"><\/a><\/p>\n<h3>3.2 iPhone<\/h3>\n<p>\u3053\u3061\u3089\u3082\u3001iCloud\u542b\u3080\u3055\u307e\u3056\u307e\u306a\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u9078\u629e\u53ef\u80fd<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Xamarin-FileUpload_1550\/xamarin_filepicker_ios.png\"><img loading=\"lazy\" decoding=\"async\" width=\"213\" height=\"451\" title=\"xamarin_filepicker_ios\" style=\"display: inline; background-image: none;\" alt=\"xamarin_filepicker_ios\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Xamarin-FileUpload_1550\/xamarin_filepicker_ios_thumb.png\" border=\"0\"><\/a><\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Xamarin-FileUpload_1550\/xamarin_filepicker_ios2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"213\" height=\"452\" title=\"xamarin_filepicker_ios2\" style=\"display: inline; background-image: none;\" alt=\"xamarin_filepicker_ios2\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Xamarin-FileUpload_1550\/xamarin_filepicker_ios2_thumb.png\" border=\"0\"><\/a><\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Xamarin-FileUpload_1550\/xamarin_filepicker_ios3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"212\" height=\"446\" title=\"xamarin_filepicker_ios3\" style=\"display: inline; background-image: none;\" alt=\"xamarin_filepicker_ios3\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Xamarin-FileUpload_1550\/xamarin_filepicker_ios3_thumb.png\" border=\"0\"><\/a><\/p>\n<h3>3.3 UWP<\/h3>\n<p>\u304a\u306a\u3058\u307f\u306e\u30d5\u30a1\u30a4\u30eb\u30c1\u30e5\u30fc\u30b6\u30fc<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Xamarin-FileUpload_1550\/xamarin_filepicker_uwp.png\"><img loading=\"lazy\" decoding=\"async\" width=\"377\" height=\"296\" title=\"xamarin_filepicker_uwp\" style=\"display: inline; background-image: none;\" alt=\"xamarin_filepicker_uwp\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Xamarin-FileUpload_1550\/xamarin_filepicker_uwp_thumb.png\" border=\"0\"><\/a><\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Xamarin-FileUpload_1550\/xamarin_filepicker_uwp2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"382\" height=\"302\" title=\"xamarin_filepicker_uwp2\" style=\"display: inline; background-image: none;\" alt=\"xamarin_filepicker_uwp2\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/Xamarin-FileUpload_1550\/xamarin_filepicker_uwp2_thumb.png\" border=\"0\"><\/a><\/p>\n<p>\u5272\u3068\u3044\u3044\u611f\u3058\u3060\u3002<\/p>\n<p><a href=\"https:\/\/www.amazon.co.jp\/%E7%8B%AC%E7%BF%92C-%E6%96%B0%E7%89%88-%E5%B1%B1%E7%94%B0-%E7%A5%A5%E5%AF%9B\/dp\/4798153826\/ref=as_li_ss_il?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&amp;keywords=xamarin&amp;qid=1556669691&amp;s=gateway&amp;sr=8-15&amp;linkCode=li2&amp;tag=typea09-22&amp;linkId=3e6b7a0b0ac8e862da7dc3be42163e14\" target=\"_blank\"><img decoding=\"async\" border=\"0\" src=\"\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=4798153826&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22\"><\/a><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=li2&amp;o=9&amp;a=4798153826\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google App Engine Java Standard + Spring Boot \u74b0\u5883\u69cb\u7bc9 Spring Boot\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3 Thymeleaf\u3092\u9069\u7528 Spring Boot\u306bVue.js\u3092\u5229\u7528\u3059\u308b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[39,108,84,109],"tags":[],"class_list":["post-553","post","type-post","status-publish","format-standard","hentry","category-android","category-ios","category-universal-windows-platform","category-xamarin"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=553"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/553\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=553"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}