summaryrefslogtreecommitdiffstats
path: root/library/main/res/values
diff options
context:
space:
mode:
Diffstat (limited to 'library/main/res/values')
-rw-r--r--library/main/res/values/attrs.xml48
-rw-r--r--library/main/res/values/colors.xml36
-rw-r--r--library/main/res/values/config.xml26
-rw-r--r--library/main/res/values/dimens.xml63
-rw-r--r--library/main/res/values/layouts.xml26
-rw-r--r--library/main/res/values/strings.xml24
-rw-r--r--library/main/res/values/styles.xml73
7 files changed, 296 insertions, 0 deletions
diff --git a/library/main/res/values/attrs.xml b/library/main/res/values/attrs.xml
new file mode 100644
index 0000000..25bfe6e
--- /dev/null
+++ b/library/main/res/values/attrs.xml
@@ -0,0 +1,48 @@
+<?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>
+
+ <attr name="suwLayoutTheme" format="reference" />
+
+ <attr name="suwCardBackground" format="color|reference" />
+ <attr name="suwNavBarBackButton" format="reference" />
+ <attr name="suwNavBarBackgroundColor" format="color" />
+ <attr name="suwNavBarButtonBackground" format="color|reference" />
+ <attr name="suwNavBarNextButton" format="reference" />
+ <attr name="suwNavBarTextColor" format="color" />
+ <attr name="suwNavBarTheme" format="reference" />
+
+ <declare-styleable name="SuwIllustration">
+ <attr name="suwAspectRatio" format="float" />
+ </declare-styleable>
+
+ <declare-styleable name="SuwStickyHeaderListView">
+ <attr name="suwHeader" format="reference" />
+ </declare-styleable>
+
+ <declare-styleable name="SuwSetupWizardLayout">
+ <attr name="android:layout" />
+ <attr name="suwBackground" format="color|reference" />
+ <attr name="suwBackgroundTile" format="color|reference" />
+ <attr name="suwHeaderText" format="string" localization="suggested" />
+ <attr name="suwIllustration" format="color|reference" />
+ <attr name="suwIllustrationHorizontalTile" format="color|reference" />
+ <attr name="suwIllustrationImage" format="color|reference" />
+ </declare-styleable>
+
+</resources>
diff --git a/library/main/res/values/colors.xml b/library/main/res/values/colors.xml
new file mode 100644
index 0000000..5c5b7c7
--- /dev/null
+++ b/library/main/res/values/colors.xml
@@ -0,0 +1,36 @@
+<?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>
+
+ <!-- General colors -->
+
+ <color name="suw_color_accent_dark">#ff00bcd4</color>
+ <color name="suw_color_accent_light">#ff0097a7</color>
+ <color name="suw_color_secondary_dark">#ff9e9e9e</color>
+ <color name="suw_color_secondary_light">#ff757575</color>
+ <color name="suw_link_color_light">#ff00838f</color>
+ <color name="suw_link_color_dark">#ff00e5ff</color>
+
+ <!-- Navigation bar colors -->
+
+ <color name="suw_navbar_bg_dark">#ff21272b</color>
+ <color name="suw_navbar_bg_light">#ffe4e7e9</color>
+ <color name="suw_navbar_text_dark">#deffffff</color>
+ <color name="suw_navbar_text_light">#de000000</color>
+
+</resources>
diff --git a/library/main/res/values/config.xml b/library/main/res/values/config.xml
new file mode 100644
index 0000000..74e30d3
--- /dev/null
+++ b/library/main/res/values/config.xml
@@ -0,0 +1,26 @@
+<?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>
+
+ <!-- The duration (in milliseconds) of activity transitions -->
+ <integer name="suwTransitionDuration">300</integer>
+
+ <!-- Whether to use tablet layout -->
+ <bool name="suwUseTabletLayout">false</bool>
+
+</resources>
diff --git a/library/main/res/values/dimens.xml b/library/main/res/values/dimens.xml
new file mode 100644
index 0000000..81fa53a
--- /dev/null
+++ b/library/main/res/values/dimens.xml
@@ -0,0 +1,63 @@
+<?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>
+
+ <!-- General -->
+ <dimen name="suw_layout_margin_sides">40dp</dimen>
+
+ <!-- Content styles -->
+ <dimen name="suw_content_frame_padding_top">0dp</dimen>
+ <dimen name="suw_content_frame_padding_bottom">16dp</dimen>
+
+ <dimen name="suw_description_margin_top">24dp</dimen>
+ <dimen name="suw_description_margin_bottom">12dp</dimen>
+ <dimen name="suw_description_line_spacing_extra">4sp</dimen>
+ <dimen name="suw_description_text_size">16sp</dimen>
+
+ <!-- Card layout (for tablets) -->
+ <dimen name="suw_card_corner_radius">2dp</dimen>
+ <dimen name="suw_card_elevation">5dp</dimen>
+ <dimen name="suw_card_land_margin_top">128dp</dimen>
+ <dimen name="suw_card_port_margin_sides">56dp</dimen>
+
+ <dimen name="suw_card_title_padding_end">0dp</dimen>
+ <dimen name="suw_card_title_padding_start">0dp</dimen>
+ <dimen name="suw_card_title_padding_top">16dp</dimen>
+ <dimen name="suw_card_title_padding_bottom">28dp</dimen>
+
+ <dimen name="suw_tablet_illustration_height">256dp</dimen>
+
+ <!-- Header layout (for phones) -->
+ <dimen name="suw_title_area_elevation">3dp</dimen>
+
+ <dimen name="suw_header_title_size">24sp</dimen>
+ <dimen name="suw_header_title_margin_bottom">16dp</dimen>
+ <dimen name="suw_header_title_padding_top">16dp</dimen>
+ <dimen name="suw_header_title_padding_bottom">2dp</dimen>
+ <!-- This is the extra spacing required to make the leading exactly 32sp -->
+ <dimen name="suw_header_title_line_spacing_extra">3.67sp</dimen>
+
+ <!-- Navigation bar -->
+ <dimen name="suw_navbar_button_drawable_padding">6dp</dimen>
+ <dimen name="suw_navbar_button_padding_sides">10dp</dimen>
+ <dimen name="suw_navbar_height">56dp</dimen>
+ <dimen name="suw_navbar_ic_intrinsic_size">24dp</dimen>
+ <dimen name="suw_navbar_padding_sides">24dp</dimen>
+ <dimen name="suw_navbar_text_size">16sp</dimen>
+
+</resources>
diff --git a/library/main/res/values/layouts.xml b/library/main/res/values/layouts.xml
new file mode 100644
index 0000000..b574cc4
--- /dev/null
+++ b/library/main/res/values/layouts.xml
@@ -0,0 +1,26 @@
+<?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>
+
+ <item name="suw_template" type="layout">@layout/suw_template_header</item>
+ <item name="suw_template_short" type="layout">@layout/suw_template_header_collapsed</item>
+ <item name="suw_list_template" type="layout">@layout/suw_list_template_header</item>
+ <item name="suw_list_template_short" type="layout">@layout/suw_list_template_header_collapsed</item>
+
+</resources>
+
diff --git a/library/main/res/values/strings.xml b/library/main/res/values/strings.xml
new file mode 100644
index 0000000..df30031
--- /dev/null
+++ b/library/main/res/values/strings.xml
@@ -0,0 +1,24 @@
+<?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>
+ <!-- Button for going to the next screen or step [CHAR LIMIT=40] -->
+ <string name="suw_next_button_label">Next</string>
+
+ <!-- Button for going to the previous screen or step [CHAR LIMIT=40] -->
+ <string name="suw_back_button_label">Back</string>
+</resources>
diff --git a/library/main/res/values/styles.xml b/library/main/res/values/styles.xml
new file mode 100644
index 0000000..70c444a
--- /dev/null
+++ b/library/main/res/values/styles.xml
@@ -0,0 +1,73 @@
+<?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:tools="http://schemas.android.com/tools">
+
+ <!-- General styles -->
+
+ <style name="Animation.SuwWindowAnimation" parent="@android:style/Animation.Activity">
+ <item name="android:activityOpenEnterAnimation">@anim/suw_slide_next_in</item>
+ <item name="android:activityOpenExitAnimation">@anim/suw_slide_next_out</item>
+ <item name="android:activityCloseEnterAnimation">@anim/suw_slide_back_in</item>
+ <item name="android:activityCloseExitAnimation">@anim/suw_slide_back_out</item>
+ </style>
+
+ <!-- Content styles -->
+
+ <style name="SuwContentFrame">
+ <item name="android:paddingTop">@dimen/suw_content_frame_padding_top</item>
+ <item name="android:paddingLeft">@dimen/suw_layout_margin_sides</item>
+ <item name="android:paddingRight">@dimen/suw_layout_margin_sides</item>
+ <item name="android:paddingBottom">@dimen/suw_content_frame_padding_bottom</item>
+ </style>
+
+ <!-- Card layout (for tablets) -->
+
+ <style name="SuwCardTitle">
+ <item name="android:paddingBottom">@dimen/suw_card_title_padding_bottom</item>
+ <item name="android:paddingEnd" tools:ignore="NewApi">@dimen/suw_card_title_padding_end</item>
+ <item name="android:paddingLeft">@dimen/suw_card_title_padding_start</item>
+ <item name="android:paddingRight">@dimen/suw_card_title_padding_end</item>
+ <item name="android:paddingStart" tools:ignore="NewApi">@dimen/suw_card_title_padding_start</item>
+ <item name="android:paddingTop">@dimen/suw_card_title_padding_top</item>
+ <item name="android:textAppearance">@style/TextAppearance.SuwCardTitle</item>
+ </style>
+
+ <!-- Header layout (for phones) -->
+
+ <style name="SuwHeaderTitle">
+ <item name="android:layout_marginBottom">@dimen/suw_header_title_margin_bottom</item>
+ <item name="android:layout_marginLeft">@dimen/suw_layout_margin_sides</item>
+ <item name="android:layout_marginRight">@dimen/suw_layout_margin_sides</item>
+ <item name="android:lineSpacingExtra">@dimen/suw_header_title_line_spacing_extra</item>
+ <item name="android:paddingBottom">@dimen/suw_header_title_padding_bottom</item>
+ <item name="android:paddingTop">@dimen/suw_header_title_padding_top</item>
+ <item name="android:textColor">@android:color/white</item>
+ <item name="android:textSize">@dimen/suw_header_title_size</item>
+ </style>
+
+ <!-- Navigation bar styles -->
+
+ <style name="SuwNavBarTheme">
+ <item name="android:orientation">horizontal</item>
+ <item name="android:layout_alignParentBottom">true</item>
+ <item name="android:background">?attr/suwNavBarBackgroundColor</item>
+ <item name="android:paddingLeft">@dimen/suw_navbar_padding_sides</item>
+ <item name="android:paddingRight">@dimen/suw_navbar_padding_sides</item>
+ </style>
+
+</resources>