diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-07-11 23:44:59 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-07-11 23:44:59 +0200 |
commit | 7a26f272121107084a835638f4a287d49c44a7fe (patch) | |
tree | 65dbe2899ce0eda8c53c8730185c6f932d601b74 /res | |
parent | 610df2eddc06d9b7cbe0157a2f101eb9eaef76d0 (diff) |
switch SearchView with custom action view
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/actionview_search.xml | 19 | ||||
-rw-r--r-- | res/menu/start_conversation.xml | 2 |
2 files changed, 20 insertions, 1 deletions
diff --git a/res/layout/actionview_search.xml b/res/layout/actionview_search.xml new file mode 100644 index 000000000..703009132 --- /dev/null +++ b/res/layout/actionview_search.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:addStatesFromChildren="true" + android:focusable="true" + android:gravity="center" + android:paddingLeft="5dp" + android:paddingRight="5dp" > + + <EditText + android:id="@+id/search_field" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:focusable="true" + android:inputType="textEmailAddress|textNoSuggestions" + android:textColor="@color/ondarktext"/> + +</LinearLayout>
\ No newline at end of file diff --git a/res/menu/start_conversation.xml b/res/menu/start_conversation.xml index 907fbdede..271bac187 100644 --- a/res/menu/start_conversation.xml +++ b/res/menu/start_conversation.xml @@ -3,7 +3,7 @@ <item android:id="@+id/action_search" - android:actionViewClass="android.widget.SearchView" + android:actionLayout="@layout/actionview_search" android:icon="@drawable/ic_action_search" android:showAsAction="collapseActionView|always" android:title="@string/search"/> |