Android-Typeahead alternatives and similar packages
Based on the "TextView/EditText Widget" category.
Alternatively, view android-typeahead alternatives based on common mentions on social networks and blogs.
-
android-autofittextview
A TextView that automatically resizes text to fit perfectly within its bounds. -
ExpandableTextView
Android's TextView that can expand/collapse like the Google Play's app description -
TextSurface
A little animation framework which could help you to show message in a nice looking way. -
android-edittext-validator
Android form edit text is an extension of EditText that brings data validation facilities to the edittext. -
AutoLinkTextView
AutoLinkTextView is TextView that supports Hashtags (#), Mentions (@) , URLs (http://), Phone and Email automatically detecting and ability to handle clicks. -
Android-RobotoTextView
Implementation of a TextView and all its direct/indirect subclasses with native support for the Roboto fonts, includes the brand new Roboto Slab fonts. -
WaitingDots
Small library that provides... bouncing dots. This feature is used in number of messaging apps (such as Hangouts or Messenger), and lately in Android TV (for example when connecting to Wifi). -
icarus-android
Rich text editor for Android with full features. -
passwordview
A Material Android password view that toggles password visibility via an eye icon. -
SecretTextView
A TextView that simulates the effect from the app Secret where the characters fade in/out at different speeds. -
AwesomeText
A tool that facilitates working with Spans on TextViews or any extension of them (EditTexts, Buttons...). -
Masked-Edittext
Android library contain custom realisation of EditText component for masking and formatting input text -
PlacesAutocompleteTextView
A TextView for autocompleting addresses using the Google Maps Places API -
PasswordEditText
A simple extension to the standard Android EditText which shows an icon on the right side of the field and lets the user toggle the visibility of the password he puts in. -
AnimatedEditText
Androids EditText that animates the typed text. -
chips-edittext-library
Chips EditText, Token EditText, Bubble EditText, Spannable EditText and etc.. There are many names of this control. Here I develop easy to understand , modify and integrate Chips Edit Text widget for Android -
SuperNova-Emoji
library to implement and render emojis For Android -
EmailAutoCompleteTextView
An AutoCompleteTextView with builtin Adapter with the emails in the device. It handles Android Marshmallow Runtime Permissions automatically. -
CurrencyEditText
A module designed to provide ease-of-use when using an EditText field for gathering currency information from a user -
AutosizeEditText
AutosizeEditText for Android is an extension of native EditText that offer a smooth auto scale text size. -
Android-SingleInputForm
A single EditText instead of a classical form. Library that implements flavienlaurent's singleinputform -
anytextview
An extension of Android's TextView and EditText that let's you use the font of your choice -
android-formidable-validation
Form validation and feedback library for Android. Provides .setText for more than just TextView and EditText widgets. Provides easy means to validate with dependencies. -
MaskFormatter
MaskFormatter adds mask functionality to your EditText. It will prevent user from inserting not allowed signs, and format input as well. -
KerningViews
Provides a set of views which allows to adjust the spacing between the characters in the text of that view, also known as Kerning effect. -
AccountAutoCompleteEditText
Simple extension for account suggestion and auto completion. -
AndroidCurrencyEditText
💰 A library to dynamically format your EditTexts to take currency inputs -
Checkable TextView [KOTLIN]
A simple and flexible Checked TextView or Checkable TextView written in Kotlin -
SimpleLinkableText
Simple way to create linked text, such as @username or #hashtag, in Android TextView and EditText.
Get performance insights in less than 4 minutes.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of Android-Typeahead or a related project?
README
android-typeahead
Awesome Android Typeahead library - User mention plugin, UI widget for auto complete user mention using the at sign (@) like Twitter or Facebook.
Version
1.0.1
Installation
Awesome Android Typeahead library requires android 4.0.3 (API 15) or above.
Using Gradle
- Create 'libraries' directory (if not already exists) in the root of your project at the same level of 'app' directory.
Extract the 'typeahead.zip' file and move the extracted directory to 'libraries' directory. Final structure should be as:
- /app
- build.gradle
- /libraries
- typeahead/
- build.gradle
- /settings.gradle
Edit /settings.gradle ; add the following:
include ':typeahead' project(':typeahead').projectDir = new File('libraries/typeahead')
Edit /app/build.gradle file ; add the following to dependencies section:
compile project(':typeahead')
Sync project
Rebuild project, or run:
./gradlew assembleDebug
For loading remote photos, I'm using Picasso library.
Usage
In your layout, add Add TypeaheadTextView:
<com.arabagile.typeahead.widget.TypeaheadTextView
android:id="@+id/typeaheadAutoComplete"
android:hint="@string/hint_autocomplete"
android:singleLine="false"
android:layout_height="wrap_content"
android:layout_width="match_parent"
app:ag_threshold="2"
/>
Create menu layout for typeahead dropdown menu with name menu_user_mention.xml with content:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/photo"
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_gravity="center_vertical"
android:layout_marginRight="10dp"/>
<LinearLayout
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical">
<TextView
android:id="@+id/fullname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="15sp"
android:layout_weight="1"
/>
<TextView
android:id="@+id/username"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="12sp"
android:layout_weight="1"
/>
</LinearLayout>
</LinearLayout>
In your activity, add this sample code:
TypeaheadTextView tvAutoComplete = (TypeaheadTextView) findViewById(R.id.typeaheadAutoComplete);
// Dummy dataset - From Gravatar
List<User> users = new ArrayList<>();
users.add(new User("Arab Agile", "arabagile", "http://www.gravatar.com/avatar/fc58e5bfbdf68ae2d7cc0b145cd27794?s=64"));
users.add(new User("Ammar Basha", "elbasha", "http://gravatar.com/avatar/73883b3fe159213faa5c80e7b5f33ef8?s=65"));
users.add(new User("Mary Angel", "mariana", "http://gravatar.com/avatar/38bc81642c20ff6181f3b39d91829ef8?s=64"));
users.add(new User("Cristina", "cristina", "http://gravatar.com/avatar/55abbae35d82f050bc482aa5b457ce28?s=64"));
users.add(new User("Bob Alexander", "bob", "http://gravatar.com/avatar/d6924c79ed9ba7fdc49c1b591a051c2f?s=64"));
MentionAdapter adapter = new MentionAdapter(this, R.layout.menu_user_mention, users);
tvAutoComplete.setAdapter(adapter);
Enjoy!
Configuration
You can set the threshold - the number of charcaters after at sign (@) before the dropdown menu will appear. To do so you can set ag_threshold in xml layout to integer value.
TODO
- Use custom image loader like UIL
License
MIT
*Note that all licence references and agreements mentioned in the Android-Typeahead README section above
are relevant to that project's source code only.