AutoFillEditText

This custom EditText will suggest and fill text defined before automatically

License

License

Categories

Categories

Auto Application Layer Libs Code Generators KeY Data Data Formats Formal Verification
GroupId

GroupId

com.tuyenmonkey
ArtifactId

ArtifactId

auto-fill-edit-text
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

aar
Description

Description

AutoFillEditText
This custom EditText will suggest and fill text defined before automatically
Project URL

Project URL

https://github.com/nntuyen/auto-fill-edit-text
Source Code Management

Source Code Management

https://github.com/nntuyen/auto-fill-edit-text

Download auto-fill-edit-text

How to add to project

<!-- https://jarcasting.com/artifacts/com.tuyenmonkey/auto-fill-edit-text/ -->
<dependency>
    <groupId>com.tuyenmonkey</groupId>
    <artifactId>auto-fill-edit-text</artifactId>
    <version>1.0.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.tuyenmonkey/auto-fill-edit-text/
implementation 'com.tuyenmonkey:auto-fill-edit-text:1.0.0'
// https://jarcasting.com/artifacts/com.tuyenmonkey/auto-fill-edit-text/
implementation ("com.tuyenmonkey:auto-fill-edit-text:1.0.0")
'com.tuyenmonkey:auto-fill-edit-text:aar:1.0.0'
<dependency org="com.tuyenmonkey" name="auto-fill-edit-text" rev="1.0.0">
  <artifact name="auto-fill-edit-text" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.tuyenmonkey', module='auto-fill-edit-text', version='1.0.0')
)
libraryDependencies += "com.tuyenmonkey" % "auto-fill-edit-text" % "1.0.0"
[com.tuyenmonkey/auto-fill-edit-text "1.0.0"]

Dependencies

compile (1)

Group / Artifact Type Version
com.android.support » appcompat-v7 jar 25.1.0

Project Modules

There are no modules declared in this project.

Auto Fill EditText

Build Status

You don't need to type the whole text. You just type some and it will suggest the remaining part.

Usage

Step 1: Define your suggestions list In Java code

editText.addSuggestions(Arrays.asList("hotmail.com", "microsoft.com"));

or in xml

<resources>
  <string-array name="emails">
    <item>tuyenmonkey.com</item>
    <item>tiki.vn</item>
    <item>gmail.com</item>
    <item>yahoo.com</item>
  </string-array>
</resources>

Step 2: Include view in your layout. At this time, I support 2 modes. The default one is normal that will suggest the whole text and the email one that will suggest the domain after @.

<com.tuyenmonkey.AutoFillEditText
      android:id="@+id/afetEmail"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      app:mode="email"
      app:suggestions="@array/emails"
      />

Download

Gradle:

dependencies {
  compile 'com.tuyenmonkey:auto-fill-edit-text:1.0.0'
}

Snapshots of the development version are available in Sonatype's snapshots repository.

License

Copyright 2017 Tuyen Monkey

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.

Versions

Version
1.0.0