diff options
author | David A. Madore <david+git@madore.org> | 2010-04-27 02:13:49 +0200 |
---|---|---|
committer | David A. Madore <david+git@madore.org> | 2010-04-27 02:24:17 +0200 |
commit | 221e994358da9d5e18fe490a19389093dfe4e755 (patch) | |
tree | a386603af4a5cf4ee501c4456d653560b8965058 /res | |
parent | e37377a5d3ca4c78c440b097af4186cbbd81a6a0 (diff) | |
download | UnicodeMap-221e994358da9d5e18fe490a19389093dfe4e755.tar.gz UnicodeMap-221e994358da9d5e18fe490a19389093dfe4e755.tar.bz2 UnicodeMap-221e994358da9d5e18fe490a19389093dfe4e755.zip |
Implement a search mechanism.
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/main_layout.xml | 2 | ||||
-rw-r--r-- | res/layout/search_dialog.xml | 24 | ||||
-rw-r--r-- | res/menu/options_menu.xml | 5 | ||||
-rw-r--r-- | res/values/strings.xml | 5 |
4 files changed, 35 insertions, 1 deletions
diff --git a/res/layout/main_layout.xml b/res/layout/main_layout.xml index 571a2dc..89480d7 100644 --- a/res/layout/main_layout.xml +++ b/res/layout/main_layout.xml @@ -21,7 +21,7 @@ android:layout_width="0dip" android:layout_height="wrap_content" android:layout_weight="1" /> - <Button android:id="@+id/button" + <Button android:id="@+id/copyButton" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/copy_button" /> diff --git a/res/layout/search_dialog.xml b/res/layout/search_dialog.xml new file mode 100644 index 0000000..7c7be92 --- /dev/null +++ b/res/layout/search_dialog.xml @@ -0,0 +1,24 @@ +<?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="fill_parent" + android:padding="10dp" + android:orientation="vertical"> + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <EditText android:id="@+id/searchTerm" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" /> + <Button android:id="@+id/searchButton" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:text="@string/search_button" /> + </LinearLayout> + <TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/search_hint" /> +</LinearLayout> diff --git a/res/menu/options_menu.xml b/res/menu/options_menu.xml new file mode 100644 index 0000000..a187813 --- /dev/null +++ b/res/menu/options_menu.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:id="@+id/menuSearch" + android:title="@string/menu_search" /> +</menu> diff --git a/res/values/strings.xml b/res/values/strings.xml index 605a255..b77be4a 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -6,4 +6,9 @@ <string name="copy_button">Copy</string> <string name="copied_toast">Copied to clipboard</string> <string name="empty_list">(Empty!)</string> + <string name="menu_search">Search</string> + <string name="search_title">Search in character names</string> + <string name="search_button">Search</string> + <string name="search_hint">Case is insensitive and matches whole string; use a % sign as wildcard (e.g.: "latin%letter r%")</string> + <string name="list_too_long">Only %d first results shown</string> </resources> |