Skip to content

Instantly share code, notes, and snippets.

@mderazon
Last active December 23, 2015 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mderazon/6653926 to your computer and use it in GitHub Desktop.
Save mderazon/6653926 to your computer and use it in GitHub Desktop.
The AutoCompleteTextView that goes into the ActionBar
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:layout_gravity="fill_horizontal"
android:focusable="true" >
<AutoCompleteTextView
android:id="@+id/search_box"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:dropDownVerticalOffset="5dp"
android:dropDownWidth="wrap_content"
android:inputType="textAutoComplete|textAutoCorrect"
android:popupBackground="@color/white"
android:textColor="#FFFFFF" >
</AutoCompleteTextView>
</RelativeLayout>
@firestork
Copy link

Hi, i was read your tutorial here: http://www.drzon.net/how-to-create-a-clearable-autocomplete-dropdown-with-autocompletetextview/. it a very nice tut!
i'm newbie dev android. i followed your code but it doesn't work. can u send my your source code. Thank u very much!

Email: firestork.g@gmail.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment