diff options
Diffstat (limited to 'setupwizardlib/src/main/res/values')
-rw-r--r-- | setupwizardlib/src/main/res/values/attrs.xml | 124 | ||||
-rw-r--r-- | setupwizardlib/src/main/res/values/colors.xml | 40 | ||||
-rw-r--r-- | setupwizardlib/src/main/res/values/config.xml | 26 | ||||
-rw-r--r-- | setupwizardlib/src/main/res/values/dimens.xml | 122 | ||||
-rw-r--r-- | setupwizardlib/src/main/res/values/layouts.xml | 32 | ||||
-rw-r--r-- | setupwizardlib/src/main/res/values/strings.xml | 27 | ||||
-rw-r--r-- | setupwizardlib/src/main/res/values/styles.xml | 200 | ||||
-rw-r--r-- | setupwizardlib/src/main/res/values/themes.xml | 97 |
8 files changed, 668 insertions, 0 deletions
diff --git a/setupwizardlib/src/main/res/values/attrs.xml b/setupwizardlib/src/main/res/values/attrs.xml new file mode 100644 index 0000000..4bdc05a --- /dev/null +++ b/setupwizardlib/src/main/res/values/attrs.xml @@ -0,0 +1,124 @@ +<?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> + + <!-- Theme attributes --> + <attr name="suwLayoutTheme" format="reference" /> + <attr name="suwMarginSides" format="dimension|reference" /> + + <attr name="suwCardBackground" format="color|reference" /> + <attr name="suwDividerCondition"> + <enum name="either" value="0" /> + <enum name="both" value="1" /> + </attr> + <attr name="suwListItemIconColor" format="color" /> + <attr name="suwNavBarBackgroundColor" format="color" /> + <attr name="suwNavBarButtonBackground" format="color|reference" /> + <attr name="suwNavBarTextColor" format="color" /> + <attr name="suwNavBarTheme" format="reference" /> + + <!-- Custom view attributes --> + <attr name="suwHeader" format="reference" /> + <attr name="suwHeaderText" format="string" localization="suggested" /> + <attr name="suwDividerInset" format="dimension|reference" /> + <attr name="suwItemDescriptionStyle" format="reference" /> + + <declare-styleable name="SuwIllustration"> + <attr name="suwAspectRatio" format="float" /> + </declare-styleable> + + <declare-styleable name="SuwStickyHeaderListView"> + <attr name="suwHeader" /> + </declare-styleable> + + <declare-styleable name="SuwHeaderRecyclerView"> + <attr name="suwHeader" /> + </declare-styleable> + + <declare-styleable name="SuwGlifLayout"> + <attr name="android:icon" /> + <attr name="android:colorPrimary" /> + <attr name="suwHeaderColor" format="reference|color" /> + <attr name="suwHeaderText" /> + </declare-styleable> + + <declare-styleable name="SuwGlifListLayout"> + <attr name="android:entries" /> + <attr name="suwDividerInset" /> + </declare-styleable> + + <declare-styleable name="SuwStatusBarBackgroundLayout"> + <attr name="suwStatusBarBackground" format="color|reference" /> + </declare-styleable> + + <declare-styleable name="SuwMaxSizeFrameLayout"> + <attr name="android:height" /> + <attr name="android:width" /> + </declare-styleable> + + <declare-styleable name="SuwSetupWizardLayout"> + <attr name="suwBackground" format="color|reference" /> + <attr name="suwBackgroundTile" format="color|reference" /> + <attr name="suwHeaderText" /> + <attr name="suwDecorPaddingTop" format="dimension|reference" /> + <attr name="suwIllustration" format="color|reference" /> + <attr name="suwIllustrationAspectRatio" format="float|reference" /> + <attr name="suwIllustrationHorizontalTile" format="color|reference" /> + <attr name="suwIllustrationImage" format="color|reference" /> + </declare-styleable> + + <declare-styleable name="SuwTemplateLayout"> + <attr name="android:layout" /> + <attr name="suwContainer" format="reference" /> + </declare-styleable> + + <declare-styleable name="SuwSetupWizardListLayout"> + <attr name="suwDividerInset" /> + </declare-styleable> + + <declare-styleable name="SuwSetupWizardItemsLayout"> + <attr name="android:entries" /> + </declare-styleable> + + <declare-styleable name="SuwAbstractItem"> + <attr name="android:id" /> + </declare-styleable> + + <declare-styleable name="SuwItem"> + <attr name="android:enabled" /> + <attr name="android:icon" /> + <attr name="android:layout" /> + <attr name="android:summary" /> + <attr name="android:title" /> + <attr name="android:visible" /> + </declare-styleable> + + <declare-styleable name="SuwDividerItemDecoration"> + <attr name="android:listDivider" /> + <attr name="android:dividerHeight" /> + <attr name="suwDividerCondition" /> + </declare-styleable> + + <declare-styleable name="SuwButtonItem"> + <attr name="android:buttonStyle" /> + <attr name="android:enabled" /> + <attr name="android:text" /> + <attr name="android:theme" /> + </declare-styleable> + +</resources> diff --git a/setupwizardlib/src/main/res/values/colors.xml b/setupwizardlib/src/main/res/values/colors.xml new file mode 100644 index 0000000..e6ee76b --- /dev/null +++ b/setupwizardlib/src/main/res/values/colors.xml @@ -0,0 +1,40 @@ +<?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">#ff448aff</color> + <color name="suw_color_accent_light">#ff3367d6</color> + <color name="suw_link_color_dark">#ff448aff</color> + <color name="suw_link_color_light">#ff3367d6</color> + <color name="suw_list_item_icon_color_dark">#b3ffffff</color> + <color name="suw_list_item_icon_color_light">#89000000</color> + <color name="suw_progress_bar_color_dark">#ffffcd40</color> + <color name="suw_progress_bar_color_light">#fff4b400</color> + + <!-- Navigation bar colors --> + + <color name="suw_navbar_bg_dark">#ff21272b</color> + <color name="suw_navbar_bg_light">#ffe4e7e9</color> + + <!-- GLIF colors --> + <color name="suw_color_accent_glif_dark">#ff4285f4</color> + <color name="suw_color_accent_glif_light">#ff4285f4</color> + +</resources> diff --git a/setupwizardlib/src/main/res/values/config.xml b/setupwizardlib/src/main/res/values/config.xml new file mode 100644 index 0000000..74e30d3 --- /dev/null +++ b/setupwizardlib/src/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/setupwizardlib/src/main/res/values/dimens.xml b/setupwizardlib/src/main/res/values/dimens.xml new file mode 100644 index 0000000..4a6266e --- /dev/null +++ b/setupwizardlib/src/main/res/values/dimens.xml @@ -0,0 +1,122 @@ +<?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> + <dimen name="suw_glif_margin_sides">24dp</dimen> + <dimen name="suw_glif_margin_top">48dp</dimen> + + <!-- Content styles --> + <dimen name="suw_check_box_line_spacing_extra">4sp</dimen> + <dimen name="suw_check_box_margin_bottom">12dp</dimen> + <dimen name="suw_check_box_margin_start">1dp</dimen> + <dimen name="suw_check_box_margin_top">24dp</dimen> + <dimen name="suw_check_box_padding_start">15dp</dimen> + <dimen name="suw_check_box_text_size">16sp</dimen> + + <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_margin_bottom_lists">24dp</dimen> + <dimen name="suw_description_line_spacing_extra">4sp</dimen> + <dimen name="suw_description_text_size">16sp</dimen> + + <dimen name="suw_description_glif_margin_top">3dp</dimen> + <dimen name="suw_description_glif_margin_bottom_lists">24dp</dimen> + + <!-- Margin on the start to offset for margin in the drawable --> + <dimen name="suw_radio_button_margin_start">-6dp</dimen> + <dimen name="suw_radio_button_margin_top">0dp</dimen> + <dimen name="suw_radio_button_margin_bottom">12dp</dimen> + <dimen name="suw_radio_button_padding_start">18dp</dimen> + <dimen name="suw_radio_button_line_spacing_extra">5sp</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_header_text_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> + + <!-- Decor view (illustration or the header without illustration) --> + <dimen name="suw_decor_padding_top">0dp</dimen> + + <!-- GLIF card layout (for tablets) --> + <dimen name="suw_glif_card_elevation">5dp</dimen> + <dimen name="suw_glif_card_width">560dp</dimen> + <dimen name="suw_glif_card_height">672dp</dimen> + + <!-- Header layout (for phones) --> + <dimen name="suw_title_area_elevation">3dp</dimen> + <!-- Hack to force the header (and its shadow) to be drawn on top of the list contents --> + <dimen name="suw_header_elevation_hack">1dp</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> + + <dimen name="suw_glif_header_title_margin_top">15dp</dimen> + <dimen name="suw_glif_header_title_margin_bottom">2dp</dimen> + + <dimen name="suw_glif_icon_max_height">32dp</dimen> + + <!-- Illustration --> + <item name="suw_illustration_aspect_ratio" format="float" type="dimen">2.22</item> + + <!-- Items --> + <dimen name="suw_items_icon_container_width">48dp</dimen> + <dimen name="suw_items_padding_vertical">15dp</dimen> + <dimen name="suw_items_verbose_padding_vertical">20dp</dimen> + + <dimen name="suw_items_icon_divider_inset">88dp</dimen> + <dimen name="suw_items_text_divider_inset">40dp</dimen> + + <dimen name="suw_items_glif_icon_divider_inset">72dp</dimen> + <dimen name="suw_items_glif_text_divider_inset">24dp</dimen> + + <!-- Extra padding in the bottom to compensate for difference between descent and (top) internal leading --> + <dimen name="suw_items_padding_bottom_extra">1dp</dimen> + <dimen name="suw_items_verbose_padding_bottom_extra">0dp</dimen> + <dimen name="suw_items_preferred_height">56dp</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> + + <!-- Progress bar --> + <!-- The margin to compensate for the padding built-in to the widget itself --> + <dimen name="suw_progress_bar_margin_vertical">-7dp</dimen> + <dimen name="suw_glif_progress_bar_margin_vertical">7dp</dimen> + +</resources> diff --git a/setupwizardlib/src/main/res/values/layouts.xml b/setupwizardlib/src/main/res/values/layouts.xml new file mode 100644 index 0000000..7a5d435 --- /dev/null +++ b/setupwizardlib/src/main/res/values/layouts.xml @@ -0,0 +1,32 @@ +<?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> + <item name="suw_no_scroll_template" type="layout">@layout/suw_no_scroll_template_header</item> + <item name="suw_no_scroll_template_short" type="layout">@layout/suw_no_scroll_template_header_collapsed</item> + + <item name="suw_glif_template" type="layout">@layout/suw_glif_template_compact</item> + <item name="suw_glif_list_template" type="layout">@layout/suw_glif_list_template_compact</item> + <item name="suw_glif_blank_template" type="layout">@layout/suw_glif_blank_template_compact</item> + +</resources> + diff --git a/setupwizardlib/src/main/res/values/strings.xml b/setupwizardlib/src/main/res/values/strings.xml new file mode 100644 index 0000000..9436690 --- /dev/null +++ b/setupwizardlib/src/main/res/values/strings.xml @@ -0,0 +1,27 @@ +<?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=20] --> + <string name="suw_next_button_label">Next</string> + + <!-- Button for going to the previous screen or step [CHAR LIMIT=20] --> + <string name="suw_back_button_label">Back</string> + + <!-- Button for scrolling down to reveal more content on the screen [CHAR LIMIT=20] --> + <string name="suw_more_button_label">More</string> +</resources> diff --git a/setupwizardlib/src/main/res/values/styles.xml b/setupwizardlib/src/main/res/values/styles.xml new file mode 100644 index 0000000..f2bae05 --- /dev/null +++ b/setupwizardlib/src/main/res/values/styles.xml @@ -0,0 +1,200 @@ +<?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">?attr/suwMarginSides</item> + <item name="android:paddingRight">?attr/suwMarginSides</item> + <item name="android:paddingBottom">@dimen/suw_content_frame_padding_bottom</item> + </style> + + <style name="SuwDescription"> + <!-- Before Honeycomb, layout_gravity is needed for FrameLayout to apply the margins --> + <item name="android:layout_gravity">top</item> + <item name="android:layout_marginBottom">@dimen/suw_description_margin_bottom</item> + <item name="android:layout_marginTop">@dimen/suw_description_margin_top</item> + <item name="android:lineSpacingExtra">@dimen/suw_description_line_spacing_extra</item> + <item name="android:textAppearance">@style/TextAppearance.SuwDescription</item> + </style> + + <style name="SuwDescription.Glif" parent="SuwDescription"> + <item name="android:layout_marginTop">@dimen/suw_description_glif_margin_top</item> + </style> + + <style name="TextAppearance.SuwDescription.Light" parent="TextAppearance.SuwDescription"> + <item name="android:fontFamily" tools:ignore="NewApi">sans-serif-light</item> + </style> + + <style name="TextAppearance.SuwDescription.Secondary" parent="TextAppearance.SuwDescription"> + <item name="android:textColor">?android:attr/textColorSecondary</item> + </style> + + <style name="SuwRadioButton"> + <item name="android:layout_marginBottom">@dimen/suw_radio_button_margin_bottom</item> + <item name="android:layout_marginLeft">@dimen/suw_radio_button_margin_start</item> + <item name="android:layout_marginStart" tools:ignore="NewApi">@dimen/suw_radio_button_margin_start</item> + <item name="android:layout_marginTop">@dimen/suw_radio_button_margin_top</item> + <item name="android:lineSpacingExtra">@dimen/suw_radio_button_line_spacing_extra</item> + <item name="android:paddingLeft">@dimen/suw_radio_button_padding_start</item> + <item name="android:paddingStart" tools:ignore="NewApi">@dimen/suw_radio_button_padding_start</item> + <item name="android:textAppearance">@style/TextAppearance.SuwDescription</item> + </style> + + <style name="SuwCheckBox"> + <item name="android:layout_marginBottom">@dimen/suw_check_box_margin_bottom</item> + <item name="android:layout_marginLeft">@dimen/suw_check_box_margin_start</item> + <item name="android:layout_marginStart" tools:ignore="NewApi">@dimen/suw_check_box_margin_start</item> + <item name="android:layout_marginTop">@dimen/suw_check_box_margin_top</item> + <item name="android:lineSpacingExtra">@dimen/suw_check_box_line_spacing_extra</item> + <item name="android:paddingLeft">@dimen/suw_check_box_padding_start</item> + <item name="android:paddingStart" tools:ignore="NewApi">@dimen/suw_check_box_padding_start</item> + <item name="android:textAppearance">@style/TextAppearance.SuwDescription</item> + </style> + + <style name="SuwCheckBox.Multiline" parent="SuwCheckBox"> + <item name="android:gravity">top</item> + </style> + + <!-- Card layout (for tablets) --> + + <style name="SuwBaseCardTitle"> + <item name="android:ellipsize">end</item> + <item name="android:maxLines">2</item> + <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> + + <style name="SuwCardTitle" parent="SuwBaseCardTitle" /> + + <!-- GLIF Card layout (for tablets) --> + + <style name="SuwGlifCardContainer"> + <item name="android:background">?android:attr/colorBackground</item> + <item name="android:elevation" tools:ignore="NewApi">5dp</item> + </style> + + <!-- Header layout (for phones) --> + + <style name="SuwBaseHeaderTitle"> + <!-- Before Honeycomb, layout_gravity is needed for FrameLayout to apply the margins --> + <item name="android:layout_gravity">top</item> + <item name="android:ellipsize">end</item> + <item name="android:maxLines">2</item> + <item name="android:textSize">@dimen/suw_header_title_size</item> + </style> + + <style name="SuwHeaderTitle" parent="SuwBaseHeaderTitle"> + <item name="android:layout_marginBottom">@dimen/suw_header_title_margin_bottom</item> + <item name="android:layout_marginLeft">?attr/suwMarginSides</item> + <item name="android:layout_marginRight">?attr/suwMarginSides</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> + </style> + + <!-- Items styles --> + + <style name="SuwItemContainer.Description" parent="SuwItemContainer"> + <item name="android:paddingTop">@dimen/suw_description_margin_top</item> + <item name="android:paddingBottom">@dimen/suw_description_margin_bottom_lists</item> + </style> + + <style name="SuwItemContainer.Description.Glif" parent="SuwItemContainer.Description"> + <item name="android:minHeight">0dp</item> + <item name="android:paddingTop">@dimen/suw_description_glif_margin_top</item> + <item name="android:paddingBottom">@dimen/suw_description_glif_margin_bottom_lists</item> + </style> + + <style name="SuwItemContainer.Verbose" parent="SuwItemContainer"> + <item name="android:paddingBottom">@dimen/suw_items_verbose_padding_vertical</item> + <item name="android:paddingTop">@dimen/suw_items_verbose_padding_vertical</item> + </style> + + <style name="SuwItemTitle.Verbose" parent="SuwItemTitle"> + <item name="android:textAppearance">@style/TextAppearance.SuwGlifBody</item> + </style> + + <style name="TextAppearance.SuwItemSummary" parent="android:TextAppearance"> + <item name="android:textSize">16sp</item> + <item name="android:textColor">?android:attr/textColorSecondary</item> + </style> + + <!-- GLIF layout --> + + <style name="SuwGlifHeaderTitle" parent="SuwBaseHeaderTitle"> + <item name="android:layout_marginBottom">@dimen/suw_glif_header_title_margin_bottom</item> + <item name="android:layout_marginLeft">?attr/suwMarginSides</item> + <item name="android:layout_marginRight">?attr/suwMarginSides</item> + <item name="android:layout_marginTop">@dimen/suw_glif_header_title_margin_top</item> + <item name="android:textColor">?android:attr/textColorPrimary</item> + </style> + + <style name="SuwGlifIcon"> + <item name="android:layout_marginLeft">?attr/suwMarginSides</item> + <item name="android:layout_marginRight">?attr/suwMarginSides</item> + <item name="android:layout_marginTop">@dimen/suw_glif_margin_top</item> + <item name="android:adjustViewBounds">true</item> + <item name="android:maxHeight">@dimen/suw_glif_icon_max_height</item> + <item name="android:scaleType">centerInside</item> + </style> + + <style name="TextAppearance.SuwGlifBody" parent="android:TextAppearance"> + <item name="android:textSize">14sp</item> + <item name="android:textColor">?android:attr/textColorPrimary</item> + </style> + + <style name="TextAppearance.SuwGlifItemTitle" parent="android:TextAppearance"> + <item name="android:textSize">16sp</item> + <item name="android:textColor">?android:attr/textColorPrimary</item> + </style> + + <style name="TextAppearance.SuwGlifItemSummary" parent="android:TextAppearance"> + <item name="android:textSize">14sp</item> + <item name="android:textColor">?android:attr/textColorSecondary</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> + <item name="suwNavBarTextColor">?android:attr/textColorPrimary</item> + </style> + +</resources> diff --git a/setupwizardlib/src/main/res/values/themes.xml b/setupwizardlib/src/main/res/values/themes.xml new file mode 100644 index 0000000..119086c --- /dev/null +++ b/setupwizardlib/src/main/res/values/themes.xml @@ -0,0 +1,97 @@ +<?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. +--> + +<!-- These styles are only included in the platform build, to make sure that they do not + override the corresponding styles in the compatibility build. --> +<resources> + + <!-- General styles --> + + <!-- These themes should only be used in platform builds because support libraries' + FragmentActivity and AppCompatActivity expects the activity theme to inherit from + Theme.AppCompat. --> + <style name="SuwThemeMaterial" parent="@style/Theme.AppCompat.NoActionBar"> + <item name="colorAccent">@color/suw_color_accent_dark</item> + <item name="android:listPreferredItemHeight">@dimen/suw_items_preferred_height</item> + <item name="android:listPreferredItemPaddingRight">?attr/suwMarginSides</item> + <item name="android:listPreferredItemPaddingLeft">?attr/suwMarginSides</item> + <item name="android:textAppearanceListItemSmall">@style/TextAppearance.AppCompat.Body1</item> + <item name="android:textColorLink">@color/suw_link_color_dark</item> + <item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item> + <item name="android:windowDisablePreview">true</item> + <item name="android:windowSoftInputMode">adjustResize</item> + + <item name="suwCardBackground">@drawable/suw_card_bg</item> + <item name="suwItemDescriptionStyle">@style/SuwItemContainer.Description</item> + <item name="suwListItemIconColor">@color/suw_list_item_icon_color_dark</item> + <item name="suwMarginSides">@dimen/suw_layout_margin_sides</item> + <item name="suwNavBarTheme">@style/SuwNavBarThemeDark</item> + </style> + + <style name="SuwThemeMaterial.Light" parent="@style/Theme.AppCompat.Light.NoActionBar"> + <item name="colorAccent">@color/suw_color_accent_light</item> + <item name="android:listPreferredItemHeight">@dimen/suw_items_preferred_height</item> + <item name="android:listPreferredItemPaddingRight">?attr/suwMarginSides</item> + <item name="android:listPreferredItemPaddingLeft">?attr/suwMarginSides</item> + <item name="android:textAppearanceListItemSmall">@style/TextAppearance.AppCompat.Body1</item> + <item name="android:textColorLink">@color/suw_link_color_light</item> + <item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item> + <item name="android:windowDisablePreview">true</item> + <item name="android:windowSoftInputMode">adjustResize</item> + + <item name="suwCardBackground">@drawable/suw_card_bg</item> + <item name="suwItemDescriptionStyle">@style/SuwItemContainer.Description</item> + <item name="suwListItemIconColor">@color/suw_list_item_icon_color_light</item> + <item name="suwMarginSides">@dimen/suw_layout_margin_sides</item> + <item name="suwNavBarTheme">@style/SuwNavBarThemeLight</item> + </style> + + <!-- Placeholder for GLIF dark theme, colors are not updated yet --> + <style name="SuwThemeGlif" parent="@style/Theme.AppCompat.NoActionBar"> + <item name="colorAccent">@color/suw_color_accent_glif_dark</item> + <item name="colorPrimary">@color/suw_color_accent_glif_light</item> + <item name="android:listPreferredItemHeight">@dimen/suw_items_preferred_height</item> + <item name="android:listPreferredItemPaddingRight">?attr/suwMarginSides</item> + <item name="android:listPreferredItemPaddingLeft">?attr/suwMarginSides</item> + <item name="android:textAppearanceListItem">@style/TextAppearance.SuwGlifItemTitle</item> + <item name="android:textAppearanceListItemSmall">@style/TextAppearance.SuwGlifItemSummary</item> + <item name="android:textColorLink">@color/suw_link_color_light</item> + <item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item> + <item name="android:windowDisablePreview">true</item> + <item name="android:windowSoftInputMode">adjustResize</item> + + <item name="suwItemDescriptionStyle">@style/SuwItemContainer.Description.Glif</item> + <item name="suwListItemIconColor">@color/suw_list_item_icon_color_dark</item> + <item name="suwMarginSides">@dimen/suw_glif_margin_sides</item> + </style> + + <style name="SuwThemeGlif.Light" parent="@style/Theme.AppCompat.Light.NoActionBar"> + <item name="colorAccent">@color/suw_color_accent_glif_dark</item> + <item name="colorPrimary">@color/suw_color_accent_glif_light</item> + <item name="android:listPreferredItemHeight">@dimen/suw_items_preferred_height</item> + <item name="android:listPreferredItemPaddingRight">?attr/suwMarginSides</item> + <item name="android:listPreferredItemPaddingLeft">?attr/suwMarginSides</item> + <item name="android:textAppearanceListItem">@style/TextAppearance.SuwGlifItemTitle</item> + <item name="android:textAppearanceListItemSmall">@style/TextAppearance.SuwGlifItemSummary</item> + <item name="android:textColorLink">@color/suw_link_color_light</item> + <item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item> + <item name="android:windowDisablePreview">true</item> + <item name="android:windowSoftInputMode">adjustResize</item> + + <item name="suwItemDescriptionStyle">@style/SuwItemContainer.Description.Glif</item> + <item name="suwListItemIconColor">@color/suw_list_item_icon_color_light</item> + <item name="suwMarginSides">@dimen/suw_glif_margin_sides</item> + </style> + +</resources>
\ No newline at end of file |