KZero Active Member Licensed User Longtime User Apr 3, 2019 #1 Hi, i saw many messaging apps changing keyboard's done button caption to Send as the attached images how to do that? thanks Attachments Untitled-5.png 44.3 KB · Views: 178
Hi, i saw many messaging apps changing keyboard's done button caption to Send as the attached images how to do that? thanks
DonManfred Expert Licensed User Longtime User Apr 4, 2019 #2 KZero said: how to do that? Click to expand... try B4X: Sub ForceSend(et As EditText) Dim r As Reflector r.Target = et r.RunMethod2("setImeOptions", 4, "java.lang.int") End Sub Reference: - https://developer.android.com/reference/android/widget/TextView.html#setImeOptions(int) Upvote 0
KZero said: how to do that? Click to expand... try B4X: Sub ForceSend(et As EditText) Dim r As Reflector r.Target = et r.RunMethod2("setImeOptions", 4, "java.lang.int") End Sub Reference: - https://developer.android.com/reference/android/widget/TextView.html#setImeOptions(int)
KZero Active Member Licensed User Longtime User Apr 4, 2019 #3 DonManfred said: try B4X: Sub ForceSend(et As EditText) Dim r As Reflector r.Target = et r.RunMethod2("setImeOptions", 4, "java.lang.int") End Sub Reference: - https://developer.android.com/reference/android/widget/TextView.html#setImeOptions(int) Click to expand... Working, Thanks Upvote 0
DonManfred said: try B4X: Sub ForceSend(et As EditText) Dim r As Reflector r.Target = et r.RunMethod2("setImeOptions", 4, "java.lang.int") End Sub Reference: - https://developer.android.com/reference/android/widget/TextView.html#setImeOptions(int) Click to expand... Working, Thanks