Android EditText 到 Listview actiondone
Android EditText into Listview actiondone
在我的列表视图中,对于每一行我都会看到一个 EditText。现在,当 EditText 获得焦点时,我想在键盘上看到按钮 "done"。
我用了imeOptions,但是键盘出现了按钮"return"。我能做什么?
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:imeOptions="actionDone"
android:id="@+id/editText17"
android:layout_alignParentBottom="true"
android:layout_toLeftOf="@+id/imageButton7"
android:layout_alignLeft="@+id/textView24"
android:layout_alignStart="@+id/textView24"
android:textAlignment="center"
android:hint="Note"
android:textSize="20sp" />
尝试设置你的单一属性:
android:singleLine="true"
在我的列表视图中,对于每一行我都会看到一个 EditText。现在,当 EditText 获得焦点时,我想在键盘上看到按钮 "done"。 我用了imeOptions,但是键盘出现了按钮"return"。我能做什么?
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:imeOptions="actionDone"
android:id="@+id/editText17"
android:layout_alignParentBottom="true"
android:layout_toLeftOf="@+id/imageButton7"
android:layout_alignLeft="@+id/textView24"
android:layout_alignStart="@+id/textView24"
android:textAlignment="center"
android:hint="Note"
android:textSize="20sp" />
尝试设置你的单一属性:
android:singleLine="true"