summaryrefslogtreecommitdiffstats
path: root/res/values-watch
diff options
context:
space:
mode:
authorAnthony Hugh <ahugh@google.com>2015-09-16 01:52:40 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-09-16 01:52:40 +0000
commitfbe307f9ee43b750ff8cae2658c1e0f03676da60 (patch)
tree86268e49b3b4b7e7e041d78f9e262a50b1618f5b /res/values-watch
parente31ffee066934ac4f8d66d0648c21be190a332c8 (diff)
parent6412dc4a8f47b134af6c5abb5f7f30321bb3ce68 (diff)
downloadandroid_packages_apps_PackageInstaller-fbe307f9ee43b750ff8cae2658c1e0f03676da60.tar.gz
android_packages_apps_PackageInstaller-fbe307f9ee43b750ff8cae2658c1e0f03676da60.tar.bz2
android_packages_apps_PackageInstaller-fbe307f9ee43b750ff8cae2658c1e0f03676da60.zip
Merge "Permissions Watch settings UI port" into cw-e-dev
Diffstat (limited to 'res/values-watch')
-rw-r--r--res/values-watch/attrs.xml35
-rw-r--r--res/values-watch/colors.xml2
-rw-r--r--res/values-watch/dimens.xml18
-rw-r--r--res/values-watch/integers.xml22
-rw-r--r--res/values-watch/strings.xml5
-rw-r--r--res/values-watch/styles.xml47
6 files changed, 129 insertions, 0 deletions
diff --git a/res/values-watch/attrs.xml b/res/values-watch/attrs.xml
new file mode 100644
index 00000000..e220f4c8
--- /dev/null
+++ b/res/values-watch/attrs.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2015 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<resources>
+ <!-- START: Ported from WearableSupport -->
+ <declare-styleable name="CircledImageView">
+ <attr name="android:src" />
+ <attr name="circle_color" format="color" />
+ <attr name="circle_radius" format="dimension" />
+ <attr name="circle_radius_pressed" format="dimension" />
+ <attr name="circle_border_width" format="dimension" />
+ <attr name="circle_border_color" format="color" />
+ <attr name="circle_padding" format="dimension" />
+ <attr name="shadow_width" format="dimension" />
+ <attr name="image_circle_percentage" format="dimension" />
+ <attr name="image_horizontal_offcenter_percentage" format="dimension" />
+ <attr name="image_tint" format="color" />
+ <attr name="circle_radius_percent" format="fraction" />
+ <attr name="circle_radius_pressed_percent" format="fraction" />
+ </declare-styleable>
+ <!-- END: Ported from WearableSupport -->
+</resources>
diff --git a/res/values-watch/colors.xml b/res/values-watch/colors.xml
index d662f254..39c3eb48 100644
--- a/res/values-watch/colors.xml
+++ b/res/values-watch/colors.xml
@@ -24,6 +24,8 @@
<color name="off_white">#ffeeeeee</color>
+ <color name="primary_text_light">#424242</color>
+
<!-- Copied from wearable support -->
<color name="circular_button_disabled">#757575</color>
diff --git a/res/values-watch/dimens.xml b/res/values-watch/dimens.xml
index 9f484d3a..698ed5ca 100644
--- a/res/values-watch/dimens.xml
+++ b/res/values-watch/dimens.xml
@@ -30,4 +30,22 @@
<dimen name="conf_diag_3button_margin_left">16dp</dimen>
<dimen name="conf_diag_3button_margin_bottom">9dp</dimen>
+
+ <!-- START: Ported values -->
+ <item name="default_settings_circle_radius_percent" format="fraction" type="dimen">40%</item>
+ <item name="selected_settings_circle_radius_percent" format="fraction" type="dimen">50%</item>
+ <dimen name="round_content_padding_left">40dp</dimen>
+ <dimen name="round_content_padding_right">24dp</dimen>
+ <dimen name="content_padding_left">12dp</dimen>
+ <dimen name="settings_wearable_list_view_vertical_padding_round">14dp</dimen>
+ <dimen name="setting_header_extra_line_height">16dp</dimen>
+ <dimen name="setting_long_header_text_size">20dp</dimen>
+ <dimen name="settings_header_base_height">50dp</dimen>
+ <dimen name="settings_header_top_margin">14dp</dimen>
+ <dimen name="settings_header_top_margin_circular">18dp</dimen>
+ <dimen name="settings_header_top_margin_multiline">6dp</dimen>
+ <dimen name="settings_header_top_margin_circular_multiline">16dp</dimen>
+ <dimen name="setting_short_header_text_size">24dp</dimen>
+ <dimen name="settings_text_margin_left">10dp</dimen>
+ <!-- END: Ported values -->
</resources>
diff --git a/res/values-watch/integers.xml b/res/values-watch/integers.xml
new file mode 100644
index 00000000..365ac3ab
--- /dev/null
+++ b/res/values-watch/integers.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2015 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <!-- START: Ported values -->
+ <integer name="short_title_length">13</integer>
+ <integer name="char_limit_per_line">18</integer>
+ <!-- END: Ported values -->
+</resources>
diff --git a/res/values-watch/strings.xml b/res/values-watch/strings.xml
index 161ff834..82841f0f 100644
--- a/res/values-watch/strings.xml
+++ b/res/values-watch/strings.xml
@@ -26,4 +26,9 @@
<!-- Preference row title for showing system apps. -->
<string name="preference_show_system_apps">Show system apps</string>
+
+ <!-- Generic text to indicate that a setting is enabled. Should be in all caps. [CHAR LIMIT=40] -->
+ <string name="generic_enabled">ENABLED</string>
+ <!-- Generic text to indicate that a setting is disabled. Should be in all caps. [CHAR LIMIT=40] -->
+ <string name="generic_disabled">DISABLED</string>
</resources>
diff --git a/res/values-watch/styles.xml b/res/values-watch/styles.xml
new file mode 100644
index 00000000..dc2be042
--- /dev/null
+++ b/res/values-watch/styles.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2015 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<resources>
+ <!-- START: Ported values -->
+ <style name="TextAppearance.Wearable.Small" parent="android:TextAppearance.Medium">
+ <item name="android:textSize">16sp</item>
+ <item name="android:textColor">@color/primary_text_light</item>
+ </style>
+
+ <style name="TextView.Small" parent="@android:style/Widget.Holo.Light">
+ <item name="android:fontFamily">sans-serif-condensed</item>
+ <item name="android:textAppearance">@style/TextAppearance.Wearable.Small</item>
+ </style>
+
+ <style name="TextView.Small.Light">
+ <item name="android:fontFamily">sans-serif-condensed-light</item>
+ <item name="android:textAppearance">@style/TextAppearance.Wearable.Small</item>
+ </style>
+
+ <style name="TextAppearance.Settings.Label" parent="android:TextAppearance.Medium">
+ <item name="android:textSize">14sp</item>
+ <item name="android:textColor">#FFFFFFFF</item>
+ </style>
+
+ <style name="TextAppearance.Settings.Label.Large">
+ <item name="android:textSize">16sp</item>
+ </style>
+
+ <style name="TextView.Settings.Label" parent="TextView.Small.Light">
+ <item name="android:textAppearance">@style/TextAppearance.Settings.Label</item>
+ </style>
+ <!-- END: Ported values -->
+</resources>