AutoFillEditText

This custom EditText will suggest and fill text defined before automatically

Лицензия

Лицензия

Категории

Категории

Auto Библиотеки уровня приложения Code Generators KeY Данные Data Formats Formal Verification
Группа

Группа

com.tuyenmonkey
Идентификатор

Идентификатор

auto-fill-edit-text
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

aar
Описание

Описание

AutoFillEditText
This custom EditText will suggest and fill text defined before automatically
Ссылка на сайт

Ссылка на сайт

https://github.com/nntuyen/auto-fill-edit-text
Система контроля версий

Система контроля версий

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

Скачать auto-fill-edit-text

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
com.android.support » appcompat-v7 jar 25.1.0

Модули Проекта

Данный проект не имеет модулей.

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.

Версии библиотеки

Версия
1.0.0