SoftKeyboard icon does not change

In my layout file these is a edittext control:

<EditText
android:id="@+id/txtChat"
android:layout_width="match_parent"
android:layout_height="12px"
android:inputType="text"
</>

There are 2 buttons, when use click the button i try to change icon. here is code

Button1:
EditText editTxt = (EditText)FindViewById(Resource.Id.txtChat);
editTxt.ImeOptions = ImeAction.Done;

Button2:
EditText editTxt = (EditText)FindViewById(Resource.Id.txtChat);
editTxt.ImeOptions = ImeAction.Send;

After running this app, I click the edittext control make the softkeyboard show up, then alternatively click these 2 buttons. But the icon of enter key always same. how to solve this problem? Thanks a lot.

Best Answer

Answers

Sign In or Register to comment.