Can someone please point me in the right direction how to do those bubbles or labels in
What you are showing is the same behavior as the SMS stock application. Search for the code here to see how it's done.
EDIT:
The code should be in platform_packages_apps_mms. Take a look at the RecipientsEditor class.