diff options
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> |