Skip to content
Auto Fill the custom email to EditText
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app update git folder Aug 21, 2017
img v1.0 Oct 14, 2016
library
.gitignore update git folder Aug 21, 2017
README.md Update README.md Oct 26, 2018
build.gradle update git folder Aug 21, 2017
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

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
/>

You can’t perform that action at this time.