{"id":5644,"date":"2017-04-18T10:00:37","date_gmt":"2017-04-18T01:00:37","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=5644"},"modified":"2017-04-17T19:24:10","modified_gmt":"2017-04-17T10:24:10","slug":"%e6%96%b0%e4%ba%ba%e6%88%90%e9%95%b7%e8%a8%98%e9%8c%b223th","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/5644","title":{"rendered":"\u65b0\u4eba\u6210\u9577\u8a18\u933223th"},"content":{"rendered":"<p>\u672c\u65e5\u306fAutoCompleteTextView\u3092\u7d39\u4ecb\u3057\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059<br \/>\n\u540d\u524d\u304b\u3089\u975e\u5e38\u306b\u4fbf\u5229\u304b\u3068\u601d\u3044\u307e\u3057\u305f\u304c\u3001\u5b9f\u969b\u4f7f\u3063\u3066\u307f\u308b\u3068\u305d\u3046\u3067\u3082\u306a\u3044\u3088\u3046\u306b\u601d\u3048\u307e\u3057\u305f<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-5649\" src=\"\/appnews\/wp-content\/uploads\/sites\/4\/2017\/04\/device-2017-04-17-170249-169x300.png\" alt=\"device-2017-04-17-170249\" width=\"169\" height=\"300\" border=\"1\" srcset=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2017\/04\/device-2017-04-17-170249-169x300.png 169w, https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2017\/04\/device-2017-04-17-170249.png 1080w\" sizes=\"(max-width: 169px) 100vw, 169px\" \/><br \/>\n<!--more--><\/p>\n<h3>AutoCompleteTextView\u3068\u306f<\/h3>\n<p>AutoCompleteTextView\u306f\u3001\u5165\u529b\u3057\u305f\u5024\u3092\u3082\u3068\u306b\u3001\u3044\u304f\u3064\u304b\u306e\u5019\u88dc\u3092\u51fa\u3059\u3088\u3046\u306a\u30d3\u30e5\u30fc\u306a\u306e\u3067\u3059\u304c\u3001\u3053\u306e<strong><span style=\"color: #0000ff;\">\u5019\u88dc\u306f\u81ea\u5206\u3067\u7528\u610f<\/span><\/strong>\u3057\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093<\/p>\n<p>\u4f7f\u3044\u65b9\u3068\u3057\u3066\u306f\u3001\u904e\u53bb\u306e\u5165\u529b\u5024\u3092DB\u7b49\u3067\u6301\u3063\u3066\u3044\u3066\u3001DB\u304b\u3089\u5f15\u304d\u51fa\u3057\u3066\u5019\u88dc\u3092\u4f5c\u6210\u3059\u308b\u306e\u304c\u3044\u3044\u306e\u3067\u3057\u3087\u3046\u304b<br \/>\n1\u304b\u308910\u307e\u3067\u624b\u6253\u3061\u306f\u3001\u3068\u3066\u3082\u624b\u9593\u3060\u3068\u601d\u3044\u307e\u3059<\/p>\n<p>\u4eca\u56de\u306f\u3001\u3069\u306e\u3088\u3046\u306a\u3082\u306e\u304b\u3092\u77e5\u308b\u305f\u3081\u306e\u3082\u306e\u306a\u306e\u3067\u3001\u5019\u88dc\u306f\u5c11\u306a\u304f\u3001\u624b\u6253\u3061\u3067\u7528\u610f\u3057\u307e\u3057\u305f<\/p>\n<h3>\u5b9f\u88c5<\/h3>\n<p>\u521d\u3081\u306b\u3001\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7528\u610f\u3057\u307e\u3059<br \/>\n\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u3068\u3001\u5019\u88dc\u8868\u793a\u306e2\u3064\u306b\u306a\u308a\u307e\u3059<\/p>\n<p>\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u3067\u3059<\/p>\n<pre style=\"border: dashed #000000 2px;\"><code>&lt;LinearLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\r\n              android:orientation=\"vertical\"\r\n              android:layout_width=\"match_parent\"\r\n              android:layout_height=\"match_parent\"&gt;\r\n\r\n    &lt;TextView\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:text=\"\u90fd\u9053\u5e9c\u770c:\"\r\n        \/&gt;\r\n    &lt;AutoCompleteTextView\r\n        android:id=\"@+id\/textview_autocomplete\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:layout_marginRight=\"10dp\"\r\n        \/&gt;\r\n\r\n&lt;\/LinearLayout&gt;\r\n<\/code><\/pre>\n<p>TextView\u306f\u3001\u306a\u306b\u3092\u5165\u529b\u3057\u3066\u3082\u3089\u3046\u304b\u306e\u8a98\u5c0e\u3067\u3059<br \/>\n\u4eca\u56de\u306f\u3001\u90fd\u9053\u5e9c\u770c\u3068\u3057\u3066\u3044\u307e\u3059<br \/>\nAutoCompleteTextView\u306f\u3001TextView\u3068\u3042\u308a\u307e\u3059\u304cEditText\u3092\u62e1\u5f35\u3057\u3066\u3044\u308b\u306e\u3067\u5165\u529b\u304c\u3067\u304d\u307e\u3059<br \/>\n\u79c1\u306f\u3001EditText\u3092\u62e1\u5f35\u3057\u3066\u3044\u308b\u306e\u306bTextView?\u3068\u306a\u308a\u307e\u3057\u305f<\/p>\n<p>\u6b21\u306b\u3001\u5019\u88dc\u8868\u793a\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u3067\u3059<\/p>\n<pre style=\"border: dashed #000000 2px;\"><code>&lt;TextView xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\r\n          android:layout_width=\"match_parent\"\r\n          android:layout_height=\"match_parent\"\/&gt;\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u3001<strong><span style=\"color: #0000ff;\">\u5019\u88dc\u3068\u3057\u3066\u8868\u793a\u3055\u308c\u308b1\u884c\u5206\u306e\u30ec\u30a4\u30a2\u30a6\u30c8<\/span><\/strong>\u3067\u3059<\/p>\n<p>\u3053\u308c\u3067\u4e0b\u6e96\u5099\u306f\u5b8c\u4e86\u3067\u3059<br \/>\n\u3042\u3068\u306f\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d44\u3093\u3067\u3044\u304d\u307e\u3059<\/p>\n<pre style=\"border: dashed #000000 2px;\"><code>public class AutoCompleteActivity extends Activity {\r\n\t\/\/\u5019\u88dc\u306e\u914d\u5217\r\n\tstatic final String[] Prefectures = new String[]{\r\n\t\t\t\"\u5927\u962a\",\r\n\t\t\t\"\u5927\u5206\",\r\n\t\t\t\"\u4eac\u90fd\",\r\n\t\t\t\"Osaka\",\r\n\t\t\t\"Kyoto\"\r\n\t};\r\n\r\n\t@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.activity_autocmplete);\r\n\r\n\t\tAutoCompleteTextView autoCompleteTextView =\r\n\t\t (AutoCompleteTextView) findViewById(R.id.textview_autocomplete);\r\n\t\tArrayAdapter adapter =\r\n\t\t new ArrayAdapter(this, R.layout.autocomplete_layout, Prefectures);\r\n\t\tautoCompleteTextView.setAdapter(adapter);\r\n\r\n\t\t\/\/\u4f55\u6587\u5b57\u76ee\u304b\u3089\u5019\u88dc\u3092\u51fa\u3059\u304b\r\n\t\tautoCompleteTextView.setThreshold(1);\r\n\r\n\t}\r\n}\r\n<\/code><\/pre>\n<p>setThreshold\u306f\u3001\u4f55\u6587\u5b57\u5165\u529b\u3057\u305f\u3089\u5019\u88dc\u304c\u3067\u308b\u306e\u304b\u3092\u3001\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u304d\u307e\u3059<br \/>\n\u65e5\u672c\u8a9e\u3060\u3068\u6f22\u5b57\u306e\u5019\u88dc\u304c\u591a\u304f\u3001\u5165\u529b\u3057\u305f\u305d\u3070\u304b\u3089\u5019\u88dc\u304c\u51fa\u3066\u3053\u306a\u3044\u306e\u3067\u3001\u4e0d\u4fbf\u306b\u611f\u3058\u307e\u3057\u305f<br \/>\n\u5165\u529b\u4e2d\u306e\u5e73\u4eee\u540d\u304b\u3089\u6f22\u5b57\u306e\u5019\u88dc\u3092\u51fa\u3059\u3088\u3046\u306a\u4ed5\u7d44\u307f\u304c\u6b32\u3057\u3044\u3067\u3059\u304c\u3001\u5b9f\u88c5\u306b\u306f\u8f9e\u66f8\u306e\u4f5c\u6210\u306a\u3069\u304c\u5fc5\u8981\u3068\u306a\u308b\u306e\u3067\u3001\u96e3\u3057\u3044\u3068\u601d\u3044\u307e\u3059<\/p>\n<h3>\u7d42\u308f\u308a\u306b<\/h3>\n<p>\u4fbf\u5229\u3068\u601d\u3063\u3066\u4f7f\u3063\u3066\u898b\u307e\u3057\u305f\u304c\u3001\u4f7f\u3044\u59cb\u3081\u3067\u306f\u4fbf\u5229\u3055\u306f\u611f\u3058\u307e\u305b\u3093\u3067\u3057\u305f<br \/>\n\u79c1\u306f\u3001View\u81ea\u4f53\u306b\u5019\u88dc\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u3066\u3001\u305d\u308c\u3092\u4f7f\u3046\u3068\u601d\u3063\u3066\u3044\u307e\u3057\u305f<br \/>\n\u516c\u5f0f\u3092\u898b\u3066\u3001\u5019\u88dc\u306f\u81ea\u5206\u3067\u7528\u610f\u3057\u3066\u3044\u308b\u306e\u3092\u898b\u3066\u5c11\u3057\u6b8b\u5ff5\u3067\u3057\u305f<br \/>\n\u3057\u304b\u3057\u3001\u5165\u529b\u5024\u3092DB\u306b\u4fdd\u5b58\u3057\u3066\u3001\u305d\u306e\u5024\u3092\u4f7f\u7528\u3057\u3066\u4f7f\u3044\u8fbc\u3080\u3053\u3068\u3067\u4fbf\u5229\u306b\u306a\u3063\u3066\u3044\u304f\u3082\u306e\u3060\u3068\u601d\u3044\u307e\u3059<\/p>\n<p>\u706b\u66dc\u65e5\u62c5\u5f53\uff1apoppy<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/5644\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/5644\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"\u65b0\u4eba\u6210\u9577\u8a18\u933223th\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/5644\" data-text=\"\u65b0\u4eba\u6210\u9577\u8a18\u933223th\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/5644\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/5644\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u65e5\u306fAutoCompleteTextView\u3092\u7d39\u4ecb\u3057\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059 \u540d\u524d\u304b\u3089\u975e\u5e38\u306b\u4fbf\u5229\u304b\u3068\u601d\u3044\u307e\u3057\u305f\u304c\u3001\u5b9f\u969b\u4f7f\u3063\u3066\u307f\u308b\u3068\u305d\u3046\u3067\u3082\u306a\u3044\u3088\u3046\u306b\u601d\u3048\u307e\u3057\u305f<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[100,12],"tags":[56,79,114],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/5644"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=5644"}],"version-history":[{"count":10,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/5644\/revisions"}],"predecessor-version":[{"id":5657,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/5644\/revisions\/5657"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=5644"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=5644"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=5644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}