Java Android AutoCompleteTextView可以';退出输入键盘

Java Android AutoCompleteTextView可以';退出输入键盘,java,android,autocompletetextview,Java,Android,Autocompletetextview,大家好,Android程序员们 今天,我想创建一个带有自定义适配器的简单的AutoCompleteTextView,它在模拟器上运行得非常好。但是如果我现在在我的三星Galaxy Young上运行整个程序,并在ACTextView中输入一些文本,它会提示我应该做的一切,但我无法单击显示的键盘右下角的“OK”按钮 如果我翻转智能手机并改变方向,我就可以摆脱恼人的键盘,但我无法用其他方式关闭它。解决?以下是使用的代码和xml: <AutoCompleteTextView android

大家好,Android程序员们

今天,我想创建一个带有自定义适配器的简单的AutoCompleteTextView,它在模拟器上运行得非常好。但是如果我现在在我的三星Galaxy Young上运行整个程序,并在ACTextView中输入一些文本,它会提示我应该做的一切,但我无法单击显示的键盘右下角的“OK”按钮

如果我翻转智能手机并改变方向,我就可以摆脱恼人的键盘,但我无法用其他方式关闭它。解决?以下是使用的代码和xml:

<AutoCompleteTextView
    android:id="@+id/vereinAutoComplete"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentLeft="true"
    android:layout_alignParentTop="true"
    android:hint="@string/vereinHint"
    android:inputType="textNoSuggestions">
</AutoCompleteTextView>
我在一个片段中使用了整个东西,所以不必怀疑rootView等等。。。 有一些代码供听众使用,但我认为这对于我的问题并不重要

        rootView = inflater.inflate(R.layout.verein_layout, container, false);

        AutoCompleteTextView acTextView = (AutoCompleteTextView)rootView.findViewById(R.id.vereinAutoComplete);
        acTextView.setAdapter(new SuggestionAdapter(getActivity(),acTextView.getText().toString()));
        acTextView.addTextChangedListener(new TextWatcher(){
            public void afterTextChanged(Editable s) {