1
我正在尝试使用键盘提示和auotcorrection编辑文本(例如,当您在whatsapp中编写消息时)。如果使用多个inputType属性,则Android EditText不显示键盘提示
这是我的代码:
<EditText
android:id="@+id/autoCompleteTextView1"
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_margin="20dp"
android:layout_weight="1"
android:background="@color/white"
android:ems="10"
android:inputType="textCapSentences|textMultiLine|textAutoCorrect|textAutoComplete"
android:scrollHorizontally="false"
android:hint="@string/note_content"
android:textColor="@color/black_text" />
与documentation它应该工作,但它并没有根据。 我也试过使用已弃用的android:autoText="true"
。
我需要在的inputType指定的所有functionallity
编辑:
经过一番尝试我发现,如果我只设置一个属性没有问题,但如果我把所有的东西,我需要什么工作正确。
编辑2:
我想获得是一样的东西,你写你的消息的WhatsApp编辑框。
只有textAutoComplete刚才试了,它似乎正常工作 – 2014-09-30 16:09:11
很抱歉,但它必须是多行的EditText – 2014-09-30 16:32:58
安卓的inputType =“textCapSentences | textMultiLine | textAutoComplete” – AndroidEnthusiast 2014-09-30 16:39:31