简体   繁体   中英

Android EditText into Listview actiondone

In my Listview, for every line I see a EditText. Now, I want to see the button "done" on the keyboard when the EditText is focused. I used imeOptions, but the keyboard appears the button "return". What can I do?

 <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"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM