2011-08-03 3 views
0

AutoCompleteTextViewでinputtypeを「TextUri」と指定すると、キーボードが表示され、[完了]をクリックしたときにURLを入力すると、離れる代わりに画面に表示されます。Androidのオートコンプリートテキストビューと入力タイプ

キーボードを非表示にするには

、私は戻るボタンを押す必要があります。..

<AutoCompleteTextView android:id="@+id/autocomplete_country" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:inputType="textUri"/> 

答えて

1

下記のリンクへの答えは役に立つかもしれません、それは基本的にこれを使用すると言う:

InputMethodManager inputManager = (InputMethodManager) Context.getSystemService(Context.INPUT_METHOD_SERVICE); 
    inputManager.hideSoftInputFromWindow(this.getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); 

how to hide keyboard after typing in EditText in android?

関連する問題