Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dev.assemblage:extended-auto-complete

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dev.assemblage:extended-auto-complete

Custom view extending AppCompatAutoCompleteTextView to populate dropdown on view touch.

  • 2.0.0
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

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);

FAQs

Package last updated on 16 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc