0

I write simple sms application and I try to implement adding multiple contacts. I tried to do with commas but it isn't intuitive. How can I add button with contact name to editText like is it in native sms application? Any idea?

Bakus123
  • 1,399
  • 6
  • 21
  • 40
  • 1
    have a look here :http://stackoverflow.com/questions/11318551/creating-a-custom-edittext-with-tag-like-feature – Rocel Jul 28 '14 at 20:16

1 Answers1

0

You need to take layout for that. & inside layout you can put edittext & next to it button

For Example,

   <RelativeLayout>

         <Edittext>

         <Button>

   </RelativeLayout>

This is a simple sample case to implement above functionality. You need to mange design as per your requirement. & on button click you can add number of contacts in edittext setText() method separating by them ",".

VVB
  • 7,363
  • 7
  • 49
  • 83