Last active
December 23, 2015 15:09
-
-
Save mderazon/6653926 to your computer and use it in GitHub Desktop.
The AutoCompleteTextView that goes into the ActionBar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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