代码之家  ›  专栏  ›  技术社区  ›  ralfoide

如何在Android EditText中启用IME word自动建议?

  •  0
  • ralfoide  · 技术社区  · 14 年前

    具有讽刺意味的是,这里有关于如何防止自动建议的帖子,但在我的情况下,它是还原,它没有出现,也不清楚为什么。

    这是我的布局标签。我在API 8。

    <EditText
      android:id="@+id/user_text"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:layout_weight="1"
      android:gravity="top"
      android:singleLine="false"
      android:inputType="textLongMessage|textCapSentences|textMultiLine|textAutoCorrect|textAutoComplete"
      android:hint="@string/errorreport_user_hint"
      android:paddingLeft="5dip"
      android:paddingRight="5dip"
    />
    
    1 回复  |  直到 14 年前
        1
  •  1
  •   ralfoide    14 年前

    文本自动更正 我想它会要求输入法显示自动更正,而不是文件表明这意味着编辑器提供自动更正(我猜,如AutoCompleteEditText),因此输入法不应该显示自动建议。