2010-09-25 66 views
0

我有一個文本字段,當我使用IME(默認的Nexus One)時,它不會在軟鍵盤上顯示自動提示行。如何在Android EditText中啓用IME單詞自動建議?

具有諷刺意味的是,在這裏有關於如何防止自動提示的帖子,但在我的情況下,它是回覆,它沒有出現,它不清楚爲什麼。

這是我的佈局標籤。我在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

啊得到了它,我不應該使用textAutoCorrect標誌。 我認爲它會要求輸入法顯示自動更正,而文檔表明它意味着編輯器提供自動更正(我猜如AutoCompleteEditText),因此IME不應該顯示自動建議。