ppamorim

Untitled

Dec 15th, 2014
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.16 KB | None | 0 0
  1. CUSTOM ELEMENT:
  2.  
  3. <?xml version="1.0" encoding="utf-8"?>
  4. <com.github.ppamorim.lobato.view.text.FontAutoCompleteTextView
  5.    xmlns:android="http://schemas.android.com/apk/res/android"
  6.    xmlns:app="http://schemas.android.com/apk/res-auto"
  7.    android:id="@+id/autoCompleteTextView_searchWidget"
  8.    android:layout_width="match_parent"
  9.    android:layout_height="wrap_content"
  10.    android:padding="5dp"
  11.    app:font="Roboto-Light"
  12.    android:textColor="@color/black"
  13.    android:imeOptions="actionSearch"
  14.    android:inputType="text">
  15.     <requestFocus/>
  16. </com.github.ppamorim.lobato.view.text.FontAutoCompleteTextView>
  17.  
  18. MENU:
  19.  
  20. <?xml version="1.0" encoding="utf-8"?>
  21.  
  22. <menu xmlns:android="http://schemas.android.com/apk/res/android"
  23.    xmlns:app="http://schemas.android.com/apk/res-auto">
  24.  
  25.     <item android:id="@+id/action_search"
  26.        android:name="search"
  27.        android:title="@string/search"
  28.        android:imeOptions="actionSearch"
  29.        android:inputType="textAutoComplete|textAutoCorrect"
  30.        app:actionLayout="@layout/search_custom"
  31.        android:icon="@drawable/ic_search"
  32.        app:showAsAction="ifRoom|collapseActionView"/>
  33.  
  34. </menu>
Advertisement
Add Comment
Please, Sign In to add comment