Android MultiAutoCompleteTextView
MultiAutoCompleteTextView:
MultiAutoCompleteTextView is a subclass of AutoCompleteTextView that permits the entry of multiple items using a specific token.
It offers auto-suggestions while permitting users to enter several values in one text box.
Example:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MultiAutoCompleteTextViewExample"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="You can check these input text: One, Two, Three, Four, Five, Six, Seven, Eight, Nine, Ten"
android:textSize="16sp"
android:layout_marginBottom="20dp"/>
<MultiAutoCompleteTextView
android:id="@+id/multi_auto_com_tv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:completionThreshold="1"
android:maxLines="1"
android:inputType="text"
android:hint="Enter your Digits"
/>
</LinearLayout>
Output