All Projects → wangshaolei → Autofillemailedittext

wangshaolei / Autofillemailedittext

Auto Fill the custom email to EditText

Programming Languages

java
68154 projects - #9 most used programming language

AutoFillEmailEditText

Auto fill the custom email to EditText

Step1

<declare-styleable name="AutoFillEmailEditText">
    <attr name="AutoFillEmailEditText_domains" format="string"/> //email's domain, split ','(en) and first char must be with '/'
    <attr name="AutoFillEmailEditText_default_drop_down_key_color" format="color"/>//drop down word color
    <attr name="AutoFillEmailEditText_default_drop_down_bg" format="reference"/>//drop down bg
    <attr name="AutoFillEmailEditText_default_drop_down_divider" format="boolean"/>//drop down divider
</declare-styleable>

Step2

<com.len.library.AutoFillEmailEditText
  android:id="@+id/et_mail"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:layout_marginLeft="20dp"
  android:layout_marginRight="20dp"
  android:layout_marginTop="10dp"
  android:drawablePadding="10dp"
  android:hint="邮箱地址"
  android:singleLine="true"
  android:textSize="15sp"
  app:AutoFillEmailEditText_default_drop_down_divider="true"
  app:AutoFillEmailEditText_domains="/@qq.com,@gmail.com,@126.com,@163.com" //notice
/>

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].