EmailCompletionEditText
Not very fancy and nothing that you can't write yourself in several minutes or so, EmailCompletionEditText is a helpful component I wrote for a project I'm currently working on.
Just a simple EditText that will help you type in some Email accounts in a CSV format.
A drop-down list will open while you're typing and will help you find a match and auto complete the desired Email account for a specific contact.
Clicking on a contact will result in inserting his/her email address into the EditText, keeping it separated from previous auto-completed accounts by a comma.
A single contact row is represented by the following XML:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/iv_contact_photo"
android:layout_width="@dimen/size_contact_photo"
android:layout_height="@dimen/size_contact_photo"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:background="@drawable/ic_no_contact"
android:padding="@dimen/padding_contact_photo"/>
<TextView
android:id="@+id/tv_contact_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_toEndOf="@+id/iv_contact_photo"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textStyle="bold"/>
<TextView
android:id="@+id/tv_contact_email"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_contact_name"
android:layout_toEndOf="@+id/iv_contact_photo"
android:textAppearance="?android:attr/textAppearanceSmall"/>
</RelativeLayout>
@dimen/size_contact_photo is set to 48dp.
@dimen/padding_contact_photo is set to 6dp.
@drawable/ic_no_contact is a place-holder for a contact with no photo which I created in Android Asset Studio by Roman Nurik.
And that's EmailCompletionEditText:
With hope that it will save you some time,