1

I've noticed on other app that the size of the space bar strinks and changes to .com when user select the email field, How can i add the ".com" button on android keyboard.

How can we do the same thing? an we also auto fill gmail.com or homail.com or yahoo.com quickly by detecting the 1st character after @?

dilipkaklotar
  • 1,469
  • 3
  • 20
  • 28

2 Answers2

0

This is controlled by android:inputType. Try textUri.

Shadow
  • 6,161
  • 3
  • 20
  • 14
  • i already set but it not displaying me gmail.com if i press g after @ symbol. can u give me some brief introduction for that ? – dilipkaklotar Jan 19 '12 at 11:19
  • see the last example here http://androidforbeginners.blogspot.com/2010/10/using-edittexts-inputtype-to-control.html to be honest I haven't myself used it. Will see if I can do what you want. – Shadow Jan 19 '12 at 11:25
0

To autoFill functionality see AutoTextField, or you can listen for edit action by using method

textMessage.addTextChangedListener(new TextWatcher(){
        public void afterTextChanged(Editable s) {

        }
        public void beforeTextChanged(CharSequence s, int start, int count, int after){}
        public void onTextChanged(CharSequence s, int start, int before, int count){}
    }); 

and for KeyBoard feature, see Setting Virtaul KeyBoard Action key,

Android - cutomized keyboard key and action

Community
  • 1
  • 1
jeet
  • 29,001
  • 6
  • 52
  • 53