[mono-android] How to use editText.SetImeActionLabel to update Keyboard keys
Jonathan Pryor
jonp at xamarin.com
Wed Nov 2 09:49:15 EDT 2011
On Nov 2, 2011, at 2:21 AM, Nirban Dutta wrote:
> How to use public void SetImeActionLabel (string label, int actionId)
>
> What to pass in actionid something like EditorInfo.IME_ACTION_DONE , what is the mono equivalent?
Use ImeAction.Done:
http://androidapi.xamarin.com/index.aspx?link=T%3aAndroid.Views.InputMethods.ImeAction
textView.SetImeActionLabel("label", (int) ImeAction.Done);
This will be fixed in the next release so that SetImeActionLabel() will take an ImeAction instead of an int:
http://bugzilla.xamarin.com/show_bug.cgi?id=1740
Thanks,
- Jon
More information about the Monodroid
mailing list