GitXplorerGitXplorer
u

extended-auto-complete

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
060dc689c202e8c05e9902303e127515a2377e60

version and changelog update

uumang91 committed 3 years ago
Unverified
54b7a2df490ea478bf262aac7582d2b1c0ff5cc9

updating versions

uumang91 committed 3 years ago
Unverified
e8ab66d7f002c16b55faf0ae02cad2d0e4702435

changelog update

uumang91 committed 4 years ago
Unverified
6c3a541296e9b1fa44e1a21004c22687b4477ae8

sample update, release configuration

uumang91 committed 4 years ago
Unverified
e1a9a29c7f550ddce97dd4f6c03cd3affd5ebf87

preparing for maven central release

uumang91 committed 4 years ago
Unverified
b468056eaee24b994d3c87e7a5f54960afeddbc6

readme update

uumang91 committed 4 years ago

README

The README file for this repository.

MavenBadge

Extended Auto Complete

Custom view extending AppCompatAutoComplete. In the default AutoCompleteTextView/AppCompatAutoComplete the suggestion drop-down only after typing in a couple of letters where as ExtendedAutoCompleteTextView shows the suggestion drop-down only by clicking or on touch.

Installation

implementation("dev.assemblage:extended-auto-complete:$sdkVersion")

replace $sdkVersion with the latest version of the SDK

Usage

Declare the view as shown below in the XML file of your activity or fragment.

  <dev.assemblage.extendedautocomplete.ExtendedAutoCompleteTextView
      android:id="@+id/auto_text_view"
      android:layout_width="match_parent"
      android:layout_height="48dp"/>
      

Populate the contents in the dropdown in your Java or Kotlin code as below

    ArrayList<String> stringArrayList = new ArrayList<>();
    stringArrayList.add("Apple");
    stringArrayList.add("Banana");
    stringArrayList.add("Cherry");
    stringArrayList.add("Dates");
    stringArrayList.add("Elderberry");
    stringArrayList.add("Fig");
    stringArrayList.add("Grapefruit");

    ExtendedAutoCompleteTextView extendedAutoCompleteTextView =
        (ExtendedAutoCompleteTextView) findViewById(R.id.auto_text_view);
    ArrayAdapter<String> adapter =
        new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, stringArrayList);
    extendedAutoCompleteTextView.setAdapter(adapter);