android - Shape around correct email address in EditText -


after corrected entering email address (or addresses) in gmail, got frame around address, such in picture below:

enter image description here

how can similar in case of android , edittext? there validation-libraries automatically? (i know can draw using shapes, doesn't easy...).

edit. i've found out library, , works well. https://github.com/splitwise/tokenautocomplete

don't know validation library. background of edittext can use addtextchangedlistener(). in it's ontextchanged() method check key want assign triggering validation. if validation result successful can create textveiw programatically change it's background, assign value of validated email address textview , place text view inside edit text.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -