Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Custom view for email autocomplete suggestions

Notifications You must be signed in to change notification settings

Trendyol/AutoCompleteEmailView

 
 

Repository files navigation

AutoCompleteEmailView

Custom view for email autocomplete suggestions

Setup

allprojects {
    repositories {
	    maven { url 'https://jitpack.io' }
    }
}
dependencies {
    implementation 'com.github.oguzcelik:AutoCompleteEmailView:1.0.0'
}

Usage

<com.oguzce.emailautocompleteedittext.EmailAutoCompleteEditText
            android:id="@+id/autoCompleteEditText"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textColor="@color/colorNormalText"
            app:inputColor="@color/colorNormalText"
            app:suggestionColor="@color/colorHintText" />
val domainList = listOf("@hotmail.com", "@gmail.com")

autoCompleteEditText.startSuggestionTextWatcher(domainList)

-------- or --------

autoCompleteEditText.setSuggestionList(domainList)
autoCompleteEditText.startSuggestionTextWatcher()

...

autoCompleteEditText.stopSuggestionTextWatcher()

License

Copyright 2019 oguzcelik

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Custom view for email autocomplete suggestions

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 100.0%