I'm having an EditText where I set the inputType="textEmailAddress|textVisiblePassword". But the keyboard still shows suggestion. I want to remove the suggestions and keyboard should show "#".
I have an EditText with android:imeOptions="actionDone". The soft keyboard that pops up shows a tick mark. I want to change it to the one in google contacts search -->| . How can i do this? Can it be set in xml?
android:imeOptions flags include
actionDone
actionNext
i just want to hide next button from android keyboard which is open when focus on Edittext please help me if you are having any solution
Add
android:imeOptions="actionDone"
into your EditText.
or
In code
myEditText.setImeOptions(EditorInfo.IME_ACTION_DONE);
Hi friends,
I am working on an android application. I have a small issue with
android soft keyboard. I have an editText and when i click on it, it
shows me android soft keyboard. On the top of the soft keyboard, there
is a text area that displays all the text i type using soft
keyboard.It displays me what ever text i type using the keyboard. Is
there a option to hide that text area on keyboard.
Kindly help me in this issue.
Thanks in advance.
I think you are talking about Auto Suggestion. Add the following code to your edit text in the layout file.
android:inputType="textNoSuggestions"
or in the code, you can use it like this,
setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
also you'd better read this
Solution if you speak about auto-focus on edittext:
InputMethodManager imm = (InputMethodManager)mContext.getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(editText.getWindowToken(), 0);
you can also use EditText.setInputType(InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD);
in your code.With the following code,one can stop the suggestions coming automatically from soft keyboard when you click on EditText
I want to write only integer types in EditText but when I click on EditText it opens the Normal keyboard, but I only need a keyboard with numbers while I am doing this (all in Dialog box).
Can anyone tell me how to do this?
Add this to your edittext xml
android:inputType="number"
For more info see this
EDIT:
for programmatically setting this
yourEdittext.setInputType(InputType.TYPE_CLASS_NUMBER);