diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-24 00:16:08 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-24 00:16:08 -0700 |
commit | 245791389eb09a56658d81e9894881584a712461 (patch) | |
tree | e1a393e8d6f7e328b0348cfc059bb6afd8194b23 /library/src/main/res/values | |
parent | 9e31fdd4f15ec65cfd272fb1e814bfe0461f0d4f (diff) | |
download | kau-245791389eb09a56658d81e9894881584a712461.tar.gz kau-245791389eb09a56658d81e9894881584a712461.tar.bz2 kau-245791389eb09a56658d81e9894881584a712461.zip |
Initialize searchview
Diffstat (limited to 'library/src/main/res/values')
-rw-r--r-- | library/src/main/res/values/dimens.xml | 3 | ||||
-rw-r--r-- | library/src/main/res/values/dimens_search.xml | 24 | ||||
-rw-r--r-- | library/src/main/res/values/ids.xml | 1 | ||||
-rw-r--r-- | library/src/main/res/values/strings_commons.xml | 1 | ||||
-rw-r--r-- | library/src/main/res/values/styles.xml | 8 |
5 files changed, 37 insertions, 0 deletions
diff --git a/library/src/main/res/values/dimens.xml b/library/src/main/res/values/dimens.xml index fddb6e3..0c0e749 100644 --- a/library/src/main/res/values/dimens.xml +++ b/library/src/main/res/values/dimens.xml @@ -13,4 +13,7 @@ <dimen name="kau_color_circle_size">56dp</dimen> <dimen name="kau_status_bar_height">24dp</dimen> + + <dimen name="kau_search_dropdownitem_icon_width">32dip</dimen> + </resources> diff --git a/library/src/main/res/values/dimens_search.xml b/library/src/main/res/values/dimens_search.xml new file mode 100644 index 0000000..3664403 --- /dev/null +++ b/library/src/main/res/values/dimens_search.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + + <dimen name="kau_search_height">46dp</dimen> + + <dimen name="kau_search_key_line_8">8dp</dimen> + <dimen name="kau_search_key_line_16">16dp</dimen> + <dimen name="kau_search_divider">1dp</dimen> + + <dimen name="kau_search_item_margin_text">24dp</dimen> + <dimen name="kau_search_item_height">56dp</dimen> + <dimen name="kau_search_icon">56dp</dimen> + <dimen name="kau_search_progress">24dp</dimen> + <dimen name="kau_search_text_small">14sp</dimen> + <dimen name="kau_search_text_medium">16sp</dimen> + <dimen name="kau_search_reveal">24dp</dimen> + + <dimen name="kau_search_filter_margin_top">4dp</dimen> + <dimen name="kau_search_filter_margin_start">12dp</dimen> + + <dimen name="kau_search_menu_item_margin">1dp</dimen> + <dimen name="kau_search_menu_item_margin_left_right">2dp</dimen> + +</resources>
\ No newline at end of file diff --git a/library/src/main/res/values/ids.xml b/library/src/main/res/values/ids.xml index 54f01af..cda9faa 100644 --- a/library/src/main/res/values/ids.xml +++ b/library/src/main/res/values/ids.xml @@ -7,4 +7,5 @@ <item name="kau_item_pref_color_picker" type="id" /> <item name="kau_item_pref_sub_item" type="id" /> <item name="kau_item_pref_plain_text" type="id" /> + <item name="kau_item_search" type="id" /> </resources>
\ No newline at end of file diff --git a/library/src/main/res/values/strings_commons.xml b/library/src/main/res/values/strings_commons.xml index 2673738..b37c1ea 100644 --- a/library/src/main/res/values/strings_commons.xml +++ b/library/src/main/res/values/strings_commons.xml @@ -49,4 +49,5 @@ Most resources are verbatim and x represents a formatted item <string name="kau_x_minutes">%d minutes</string> <string name="kau_warning">Warning</string> <string name="kau_yes">Yes</string> + <string name="kau_search">Search</string> </resources> diff --git a/library/src/main/res/values/styles.xml b/library/src/main/res/values/styles.xml new file mode 100644 index 0000000..c8e2197 --- /dev/null +++ b/library/src/main/res/values/styles.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + + <style name="KauSearchView" parent="Widget.AppCompat.SearchView.ActionBar"> + + </style> + +</resources>
\ No newline at end of file |