单击MultiAutoCompleteTextView时键盘不显示

时间:2014-02-19 14:28:25

标签: android autocompletetextview

我遇到的问题是点击MultiAutoCompleteTextView时软键盘没有出现。当我第一次点击另一个EditText然后更改为MultiAutoCompleteTextView时,我可以输入文字,但不能直接点击它。

我不使用requestFocus或onClick处理程序之类的东西。

这是XML:

<MultiAutoCompleteTextView
    android:id="@+id/thingTags"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_marginBottom="8dp"
    android:layout_marginLeft="8dp"
    android:layout_marginRight="8dp"
    android:layout_marginTop="0dp"
    android:hint="@string/hint_tags"
    android:inputType="textShortMessage"
    android:textIsSelectable="true" />

1 个答案:

答案 0 :(得分:2)

原来android:textIsSelectable="true"是罪魁祸首。如果我删除它,它会再次起作用。