diff options
author | Trumeet <liangyuteng12345@gmail.com> | 2017-08-03 15:12:06 +0800 |
---|---|---|
committer | Trumeet <liangyuteng12345@gmail.com> | 2017-08-03 15:12:08 +0800 |
commit | 019522cc93d947b5075ca90547b9e13f08787739 (patch) | |
tree | 18096ab2a5f678f5d2b4f3a810966c2bf9defe67 /setupwizardlib/src/main/res/layout | |
download | SetupWizardLibCompat-019522cc93d947b5075ca90547b9e13f08787739.tar SetupWizardLibCompat-019522cc93d947b5075ca90547b9e13f08787739.tar.gz SetupWizardLibCompat-019522cc93d947b5075ca90547b9e13f08787739.tar.bz2 SetupWizardLibCompat-019522cc93d947b5075ca90547b9e13f08787739.zip |
First Commit0.1
Diffstat (limited to 'setupwizardlib/src/main/res/layout')
28 files changed, 1537 insertions, 0 deletions
diff --git a/setupwizardlib/src/main/res/layout/suw_glif_blank_template_card.xml b/setupwizardlib/src/main/res/layout/suw_glif_blank_template_card.xml new file mode 100644 index 0000000..5e3da11 --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_glif_blank_template_card.xml @@ -0,0 +1,46 @@ +<?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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/suw_pattern_bg" + style="@style/SuwGlifCardBackground" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:fitsSystemWindows="true" + android:gravity="center_horizontal" + android:orientation="vertical"> + + <View + android:layout_width="0dp" + android:layout_height="0dp" + android:layout_weight="1" + android:visibility="invisible" /> + + <com.android.setupwizardlib.view.IntrinsicSizeFrameLayout + android:id="@+id/suw_layout_content" + style="@style/SuwGlifCardContainer" + android:layout_width="@dimen/suw_glif_card_width" + android:layout_height="wrap_content" + android:height="@dimen/suw_glif_card_height" /> + + <View + android:layout_width="0dp" + android:layout_height="0dp" + android:layout_weight="1" + android:visibility="invisible" /> + +</LinearLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_glif_blank_template_compact.xml b/setupwizardlib/src/main/res/layout/suw_glif_blank_template_compact.xml new file mode 100644 index 0000000..0111682 --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_glif_blank_template_compact.xml @@ -0,0 +1,29 @@ +<?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. +--> + +<com.android.setupwizardlib.view.StatusBarBackgroundLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/suw_pattern_bg" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <FrameLayout + android:id="@+id/suw_layout_content" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + +</com.android.setupwizardlib.view.StatusBarBackgroundLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_glif_header.xml b/setupwizardlib/src/main/res/layout/suw_glif_header.xml new file mode 100644 index 0000000..549426d --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_glif_header.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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <ImageView + android:id="@+id/suw_layout_icon" + style="@style/SuwGlifIcon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:contentDescription="@null" /> + + <TextView + android:id="@+id/suw_layout_title" + style="@style/SuwGlifHeaderTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + <ViewStub + android:id="@+id/suw_layout_progress_stub" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="@dimen/suw_glif_progress_bar_margin_vertical" + android:layout_marginLeft="?attr/suwMarginSides" + android:layout_marginRight="?attr/suwMarginSides" + android:layout_marginTop="@dimen/suw_glif_progress_bar_margin_vertical" + android:inflatedId="@+id/suw_layout_progress" + android:layout="@layout/suw_progress_bar" /> + +</LinearLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_glif_list_template_card.xml b/setupwizardlib/src/main/res/layout/suw_glif_list_template_card.xml new file mode 100644 index 0000000..ebbcde0 --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_glif_list_template_card.xml @@ -0,0 +1,49 @@ +<?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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/suw_pattern_bg" + style="@style/SuwGlifCardBackground" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:fitsSystemWindows="true" + android:gravity="center_horizontal" + android:orientation="vertical"> + + <View + android:layout_width="0dp" + android:layout_height="0dp" + android:layout_weight="1" + android:visibility="invisible" /> + + <com.android.setupwizardlib.view.IntrinsicSizeFrameLayout + style="@style/SuwGlifCardContainer" + android:layout_width="@dimen/suw_glif_card_width" + android:layout_height="wrap_content" + android:height="@dimen/suw_glif_card_height"> + + <include layout="@layout/suw_glif_list_template_content" /> + + </com.android.setupwizardlib.view.IntrinsicSizeFrameLayout> + + <View + android:layout_width="0dp" + android:layout_height="0dp" + android:layout_weight="1" + android:visibility="invisible" /> + +</LinearLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_glif_list_template_compact.xml b/setupwizardlib/src/main/res/layout/suw_glif_list_template_compact.xml new file mode 100644 index 0000000..3c5a8f5 --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_glif_list_template_compact.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. +--> + +<com.android.setupwizardlib.view.StatusBarBackgroundLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/suw_pattern_bg" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <include layout="@layout/suw_glif_list_template_content" /> + +</com.android.setupwizardlib.view.StatusBarBackgroundLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_glif_list_template_content.xml b/setupwizardlib/src/main/res/layout/suw_glif_list_template_content.xml new file mode 100644 index 0000000..b0eec9a --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_glif_list_template_content.xml @@ -0,0 +1,37 @@ +<?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. +--> + +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <com.android.setupwizardlib.view.StickyHeaderListView + xmlns:app="http://schemas.android.com/apk/res-auto" + android:id="@android:id/list" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + app:suwHeader="@layout/suw_glif_header" /> + + <ViewStub + android:id="@+id/suw_layout_footer" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + +</LinearLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_glif_template_card.xml b/setupwizardlib/src/main/res/layout/suw_glif_template_card.xml new file mode 100644 index 0000000..1f9c0d7 --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_glif_template_card.xml @@ -0,0 +1,49 @@ +<?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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/suw_pattern_bg" + style="@style/SuwGlifCardBackground" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:fitsSystemWindows="true" + android:gravity="center_horizontal" + android:orientation="vertical"> + + <View + android:layout_width="0dp" + android:layout_height="0dp" + android:layout_weight="1" + android:visibility="invisible" /> + + <com.android.setupwizardlib.view.IntrinsicSizeFrameLayout + style="@style/SuwGlifCardContainer" + android:layout_width="@dimen/suw_glif_card_width" + android:layout_height="wrap_content" + android:height="@dimen/suw_glif_card_height"> + + <include layout="@layout/suw_glif_template_content" /> + + </com.android.setupwizardlib.view.IntrinsicSizeFrameLayout> + + <View + android:layout_width="0dp" + android:layout_height="0dp" + android:layout_weight="1" + android:visibility="invisible" /> + +</LinearLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_glif_template_compact.xml b/setupwizardlib/src/main/res/layout/suw_glif_template_compact.xml new file mode 100644 index 0000000..d3dcad8 --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_glif_template_compact.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. +--> + +<com.android.setupwizardlib.view.StatusBarBackgroundLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/suw_pattern_bg" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <include layout="@layout/suw_glif_template_content" /> + +</com.android.setupwizardlib.view.StatusBarBackgroundLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_glif_template_content.xml b/setupwizardlib/src/main/res/layout/suw_glif_template_content.xml new file mode 100644 index 0000000..c25e444 --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_glif_template_content.xml @@ -0,0 +1,53 @@ +<?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. +--> + +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <ScrollView + android:id="@+id/suw_scroll_view" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:fillViewport="true"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <include layout="@layout/suw_glif_header" /> + + <FrameLayout + android:id="@+id/suw_layout_content" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" /> + + </LinearLayout> + + </ScrollView> + + <ViewStub + android:id="@+id/suw_layout_footer" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + +</LinearLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_items_button_bar.xml b/setupwizardlib/src/main/res/layout/suw_items_button_bar.xml new file mode 100644 index 0000000..9704311 --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_items_button_bar.xml @@ -0,0 +1,23 @@ +<?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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + style="@style/SuwItemContainer" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="end" + android:orientation="horizontal" /> diff --git a/setupwizardlib/src/main/res/layout/suw_items_default.xml b/setupwizardlib/src/main/res/layout/suw_items_default.xml new file mode 100644 index 0000000..0799a41 --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_items_default.xml @@ -0,0 +1,69 @@ +<?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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + style="@style/SuwItemContainer" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <FrameLayout + android:id="@+id/suw_items_icon_container" + android:layout_width="@dimen/suw_items_icon_container_width" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:gravity="start"> + + <ImageView + android:id="@+id/suw_items_icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + tools:ignore="ContentDescription" /> + + </FrameLayout> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="center_vertical" + android:orientation="vertical"> + + <com.android.setupwizardlib.view.RichTextView + android:id="@+id/suw_items_title" + style="@style/SuwItemTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="start" + android:textAlignment="viewStart" + tools:ignore="UnusedAttribute" /> + + <com.android.setupwizardlib.view.RichTextView + android:id="@+id/suw_items_summary" + style="@style/SuwItemSummary" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="@dimen/suw_items_padding_bottom_extra" + android:gravity="start" + android:textAlignment="viewStart" + android:visibility="gone" + tools:ignore="UnusedAttribute" /> + + </LinearLayout> + +</LinearLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_items_description.xml b/setupwizardlib/src/main/res/layout/suw_items_description.xml new file mode 100644 index 0000000..3fa1766 --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_items_description.xml @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2016 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + style="?attr/suwItemDescriptionStyle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <FrameLayout + android:id="@+id/suw_items_icon_container" + android:layout_width="@dimen/suw_items_icon_container_width" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:gravity="start"> + + <ImageView + android:id="@+id/suw_items_icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + tools:ignore="ContentDescription" /> + + </FrameLayout> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:orientation="vertical"> + + <com.android.setupwizardlib.view.RichTextView + android:id="@+id/suw_items_title" + style="@style/SuwItemTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="start" + android:lineSpacingExtra="@dimen/suw_description_line_spacing_extra" + android:textAlignment="viewStart" + android:textAppearance="@style/TextAppearance.SuwDescription" + tools:ignore="UnusedAttribute" /> + + <com.android.setupwizardlib.view.RichTextView + android:id="@+id/suw_items_summary" + style="@style/SuwItemSummary" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="start" + android:textAlignment="viewStart" + android:visibility="gone" + tools:ignore="UnusedAttribute" /> + + </LinearLayout> + +</LinearLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_items_verbose.xml b/setupwizardlib/src/main/res/layout/suw_items_verbose.xml new file mode 100644 index 0000000..f1c135d --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_items_verbose.xml @@ -0,0 +1,67 @@ +<?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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + style="@style/SuwItemContainer.Verbose" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <FrameLayout + android:id="@+id/suw_items_icon_container" + android:layout_width="@dimen/suw_items_icon_container_width" + android:layout_height="wrap_content" + android:layout_gravity="top" + android:gravity="start"> + + <ImageView + android:id="@+id/suw_items_icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + + </FrameLayout> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginBottom="@dimen/suw_items_verbose_padding_bottom_extra" + android:layout_weight="1" + android:orientation="vertical"> + + <com.android.setupwizardlib.view.RichTextView + android:id="@+id/suw_items_title" + style="@style/SuwItemTitle.Verbose" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="start" + android:textAlignment="viewStart" + tools:ignore="UnusedAttribute" /> + + <com.android.setupwizardlib.view.RichTextView + android:id="@+id/suw_items_summary" + style="@style/SuwItemSummary" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="start" + android:textAlignment="viewStart" + android:visibility="gone" + tools:ignore="UnusedAttribute" /> + + </LinearLayout> + +</LinearLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_list_header.xml b/setupwizardlib/src/main/res/layout/suw_list_header.xml new file mode 100644 index 0000000..3b21082 --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_list_header.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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:clipToPadding="false" + android:orientation="vertical" + android:elevation="@dimen/suw_header_elevation_hack" + android:tag="stickyContainer" + tools:ignore="UnusedAttribute"> + + <com.android.setupwizardlib.view.Illustration + android:id="@+id/suw_layout_decor" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@drawable/suw_layout_background" + android:elevation="@dimen/suw_title_area_elevation" + tools:ignore="UnusedAttribute"> + + <TextView + android:id="@+id/suw_layout_title" + style="@style/SuwHeaderTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:tag="sticky" /> + + </com.android.setupwizardlib.view.Illustration> + + <include layout="@layout/suw_progress_bar_stub" /> + +</LinearLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_list_template_card.xml b/setupwizardlib/src/main/res/layout/suw_list_template_card.xml new file mode 100644 index 0000000..1d491ae --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_list_template_card.xml @@ -0,0 +1,71 @@ +<?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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <com.android.setupwizardlib.view.Illustration + android:id="@+id/suw_layout_decor" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:background="@drawable/suw_layout_background"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:paddingLeft="@dimen/suw_card_port_margin_sides" + android:paddingRight="@dimen/suw_card_port_margin_sides"> + + <TextView + android:id="@+id/suw_layout_title" + style="@style/SuwCardTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + <FrameLayout + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:background="?attr/suwCardBackground" + android:elevation="@dimen/suw_card_elevation" + tools:ignore="UnusedAttribute"> + + <ListView + android:id="@android:id/list" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + + <include layout="@layout/suw_progress_bar_stub" /> + + </FrameLayout> + + </LinearLayout> + + </com.android.setupwizardlib.view.Illustration> + + <com.android.setupwizardlib.view.NavigationBar + android:id="@+id/suw_layout_navigation_bar" + style="@style/SuwNavBarTheme" + android:layout_width="match_parent" + android:layout_height="@dimen/suw_navbar_height" /> + +</LinearLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_list_template_card_wide.xml b/setupwizardlib/src/main/res/layout/suw_list_template_card_wide.xml new file mode 100644 index 0000000..203d55a --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_list_template_card_wide.xml @@ -0,0 +1,72 @@ +<?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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <com.android.setupwizardlib.view.Illustration + android:id="@+id/suw_layout_decor" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:background="@drawable/suw_layout_background"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="start|top" + android:weightSum="16"> + + <TextView + android:id="@+id/suw_layout_title" + style="@style/SuwCardTitle" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/suw_card_land_header_text_margin_top" + android:layout_weight="6" /> + + <FrameLayout + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="8" + android:background="?attr/suwCardBackground" + android:elevation="@dimen/suw_card_elevation" + tools:ignore="UnusedAttribute"> + + <ListView + android:id="@android:id/list" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + + <include layout="@layout/suw_progress_bar_stub" /> + + </FrameLayout> + + </LinearLayout> + + </com.android.setupwizardlib.view.Illustration> + + <com.android.setupwizardlib.view.NavigationBar + android:id="@+id/suw_layout_navigation_bar" + style="@style/SuwNavBarTheme" + android:layout_width="match_parent" + android:layout_height="@dimen/suw_navbar_height" /> + +</LinearLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_list_template_header.xml b/setupwizardlib/src/main/res/layout/suw_list_template_header.xml new file mode 100644 index 0000000..8e10cfa --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_list_template_header.xml @@ -0,0 +1,38 @@ +<?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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <com.android.setupwizardlib.view.StickyHeaderListView + android:id="@android:id/list" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:clipChildren="false" + app:suwHeader="@layout/suw_list_header" /> + + <com.android.setupwizardlib.view.NavigationBar + android:id="@+id/suw_layout_navigation_bar" + style="@style/SuwNavBarTheme" + android:layout_width="match_parent" + android:layout_height="@dimen/suw_navbar_height" /> + +</LinearLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_list_template_header_collapsed.xml b/setupwizardlib/src/main/res/layout/suw_list_template_header_collapsed.xml new file mode 100644 index 0000000..a85417b --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_list_template_header_collapsed.xml @@ -0,0 +1,54 @@ +<?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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <FrameLayout + android:id="@+id/suw_layout_decor" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@drawable/suw_layout_background" + android:elevation="@dimen/suw_title_area_elevation" + tools:ignore="UnusedAttribute"> + + <TextView + android:id="@+id/suw_layout_title" + style="@style/SuwHeaderTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + </FrameLayout> + + <include layout="@layout/suw_progress_bar_stub" /> + + <ListView + android:id="@android:id/list" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" /> + + <com.android.setupwizardlib.view.NavigationBar + android:id="@+id/suw_layout_navigation_bar" + style="@style/SuwNavBarTheme" + android:layout_width="match_parent" + android:layout_height="@dimen/suw_navbar_height" /> + +</LinearLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_navbar_view.xml b/setupwizardlib/src/main/res/layout/suw_navbar_view.xml new file mode 100644 index 0000000..38d0ce6 --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_navbar_view.xml @@ -0,0 +1,56 @@ +<?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. +--> + +<merge xmlns:android="http://schemas.android.com/apk/res/android"> + + <com.android.setupwizardlib.view.NavigationBarButton + android:id="@+id/suw_navbar_back" + style="@style/SuwNavBarButtonStyle" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:contentDescription="@string/suw_back_button_label" + android:drawableLeft="@drawable/suw_navbar_ic_back" + android:drawableStart="@drawable/suw_navbar_ic_back" /> + + <View + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:visibility="invisible" /> + + <com.android.setupwizardlib.view.NavigationBarButton + android:id="@+id/suw_navbar_more" + style="@style/SuwNavBarButtonStyle" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:contentDescription="@string/suw_more_button_label" + android:drawableEnd="@drawable/suw_navbar_ic_more" + android:drawableRight="@drawable/suw_navbar_ic_more" + android:gravity="end|center_vertical" + android:visibility="gone" /> + + <com.android.setupwizardlib.view.NavigationBarButton + android:id="@+id/suw_navbar_next" + style="@style/SuwNavBarButtonStyle" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:drawableEnd="@drawable/suw_navbar_ic_next" + android:drawableRight="@drawable/suw_navbar_ic_next" + android:gravity="end|center_vertical" + android:text="@string/suw_next_button_label" /> + +</merge> diff --git a/setupwizardlib/src/main/res/layout/suw_no_scroll_template_card.xml b/setupwizardlib/src/main/res/layout/suw_no_scroll_template_card.xml new file mode 100644 index 0000000..f6c2cab --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_no_scroll_template_card.xml @@ -0,0 +1,74 @@ +<?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. +--> + +<!-- This layout file is intended for use with views that handle its own scrolling, like WebView or + RecyclerView. For other layouts that should be put inside a ScrollView, consider using + suw_template instead. --> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <com.android.setupwizardlib.view.Illustration + android:id="@+id/suw_layout_decor" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:background="@drawable/suw_layout_background"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:paddingLeft="@dimen/suw_card_port_margin_sides" + android:paddingRight="@dimen/suw_card_port_margin_sides"> + + <TextView + android:id="@+id/suw_layout_title" + style="@style/SuwCardTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + <FrameLayout + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:background="?attr/suwCardBackground" + android:elevation="@dimen/suw_card_elevation" + tools:ignore="UnusedAttribute"> + + <FrameLayout + android:id="@+id/suw_layout_content" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + + <include layout="@layout/suw_progress_bar_stub" /> + + </FrameLayout> + + </LinearLayout> + + </com.android.setupwizardlib.view.Illustration> + + <com.android.setupwizardlib.view.NavigationBar + android:id="@+id/suw_layout_navigation_bar" + style="@style/SuwNavBarTheme" + android:layout_width="match_parent" + android:layout_height="@dimen/suw_navbar_height" /> + +</LinearLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_no_scroll_template_card_wide.xml b/setupwizardlib/src/main/res/layout/suw_no_scroll_template_card_wide.xml new file mode 100644 index 0000000..a09b9b6 --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_no_scroll_template_card_wide.xml @@ -0,0 +1,75 @@ +<?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. +--> + +<!-- This layout file is intended for use with views that handle its own scrolling, like WebView or + RecyclerView. For other layouts that should be put inside a ScrollView, consider using + suw_template instead. --> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <com.android.setupwizardlib.view.Illustration + android:id="@+id/suw_layout_decor" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:background="@drawable/suw_layout_background"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="start|top" + android:weightSum="16"> + + <TextView + android:id="@+id/suw_layout_title" + style="@style/SuwCardTitle" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/suw_card_land_header_text_margin_top" + android:layout_weight="6" /> + + <FrameLayout + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="8" + android:background="?attr/suwCardBackground" + android:elevation="@dimen/suw_card_elevation" + tools:ignore="UnusedAttribute"> + + <FrameLayout + android:id="@+id/suw_layout_content" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + + <include layout="@layout/suw_progress_bar_stub" /> + + </FrameLayout> + + </LinearLayout> + + </com.android.setupwizardlib.view.Illustration> + + <com.android.setupwizardlib.view.NavigationBar + android:id="@+id/suw_layout_navigation_bar" + style="@style/SuwNavBarTheme" + android:layout_width="match_parent" + android:layout_height="@dimen/suw_navbar_height" /> + +</LinearLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_no_scroll_template_header.xml b/setupwizardlib/src/main/res/layout/suw_no_scroll_template_header.xml new file mode 100644 index 0000000..413b329 --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_no_scroll_template_header.xml @@ -0,0 +1,69 @@ +<?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. +--> + +<!-- IMPORTANT NOTE: Even if this layout is used with a view that handles its scroll internally, + like WebView or RecyclerView, the illustration will not scroll away, since this view doesn't + know about the scrolling view at all. It is recommended that you add the illustration as a + header to the RecyclerView or avoid using this layout (e.g. use suw_no_scroll_template_short + instead of suw_no_scroll_template) --> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:orientation="vertical"> + + <com.android.setupwizardlib.view.Illustration + android:id="@+id/suw_layout_decor" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@drawable/suw_layout_background" + android:elevation="@dimen/suw_title_area_elevation" + android:tag="stickyContainer" + tools:ignore="UnusedAttribute"> + + <TextView + android:id="@+id/suw_layout_title" + style="@style/SuwHeaderTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:tag="sticky" /> + + </com.android.setupwizardlib.view.Illustration> + + <include layout="@layout/suw_progress_bar_stub" /> + + <FrameLayout + android:id="@+id/suw_layout_content" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" /> + + </LinearLayout> + + <com.android.setupwizardlib.view.NavigationBar + android:id="@+id/suw_layout_navigation_bar" + style="@style/SuwNavBarTheme" + android:layout_width="match_parent" + android:layout_height="@dimen/suw_navbar_height" /> + +</LinearLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_no_scroll_template_header_collapsed.xml b/setupwizardlib/src/main/res/layout/suw_no_scroll_template_header_collapsed.xml new file mode 100644 index 0000000..f8af7a7 --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_no_scroll_template_header_collapsed.xml @@ -0,0 +1,56 @@ +<?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. +--> + +<!-- This layout file is intended for use with views that handle its own scrolling, like WebView or + RecyclerView. For other layouts that should be put inside a ScrollView, consider using + suw_template instead. --> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <FrameLayout + android:id="@+id/suw_layout_decor" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@drawable/suw_layout_background" + android:elevation="@dimen/suw_title_area_elevation" + tools:ignore="UnusedAttribute"> + + <TextView + android:id="@+id/suw_layout_title" + style="@style/SuwHeaderTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + </FrameLayout> + + <include layout="@layout/suw_progress_bar_stub" /> + + <FrameLayout android:id="@+id/suw_layout_content" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" /> + + <com.android.setupwizardlib.view.NavigationBar + android:id="@+id/suw_layout_navigation_bar" + style="@style/SuwNavBarTheme" + android:layout_width="match_parent" + android:layout_height="@dimen/suw_navbar_height" /> + +</LinearLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_progress_bar_stub.xml b/setupwizardlib/src/main/res/layout/suw_progress_bar_stub.xml new file mode 100644 index 0000000..3a03375 --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_progress_bar_stub.xml @@ -0,0 +1,25 @@ +<?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. +--> + +<ViewStub xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/suw_layout_progress_stub" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="@dimen/suw_progress_bar_margin_vertical" + android:layout_marginTop="@dimen/suw_progress_bar_margin_vertical" + android:inflatedId="@+id/suw_layout_progress" + android:layout="@layout/suw_progress_bar" /> diff --git a/setupwizardlib/src/main/res/layout/suw_template_card.xml b/setupwizardlib/src/main/res/layout/suw_template_card.xml new file mode 100644 index 0000000..d79035b --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_template_card.xml @@ -0,0 +1,80 @@ +<?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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <com.android.setupwizardlib.view.Illustration + android:id="@+id/suw_layout_decor" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:background="@drawable/suw_layout_background"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:paddingLeft="@dimen/suw_card_port_margin_sides" + android:paddingRight="@dimen/suw_card_port_margin_sides"> + + <TextView + android:id="@+id/suw_layout_title" + style="@style/SuwCardTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + <FrameLayout + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:background="?attr/suwCardBackground" + android:elevation="@dimen/suw_card_elevation" + tools:ignore="UnusedAttribute"> + + <com.android.setupwizardlib.view.BottomScrollView + android:id="@+id/suw_bottom_scroll_view" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:fillViewport="true"> + + <FrameLayout + android:id="@+id/suw_layout_content" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:clipChildren="false" /> + + </com.android.setupwizardlib.view.BottomScrollView> + + <include layout="@layout/suw_progress_bar_stub" /> + + </FrameLayout> + + </LinearLayout> + + </com.android.setupwizardlib.view.Illustration> + + <com.android.setupwizardlib.view.NavigationBar + android:id="@+id/suw_layout_navigation_bar" + style="@style/SuwNavBarTheme" + android:layout_width="match_parent" + android:layout_height="@dimen/suw_navbar_height" /> + +</LinearLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_template_card_wide.xml b/setupwizardlib/src/main/res/layout/suw_template_card_wide.xml new file mode 100644 index 0000000..d4d0f1f --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_template_card_wide.xml @@ -0,0 +1,80 @@ +<?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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <com.android.setupwizardlib.view.Illustration + android:id="@+id/suw_layout_decor" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:background="@drawable/suw_layout_background"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="start|top" + android:weightSum="16"> + + <TextView + android:id="@+id/suw_layout_title" + style="@style/SuwCardTitle" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/suw_card_land_header_text_margin_top" + android:layout_weight="6" /> + + <FrameLayout + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="8" + android:background="?attr/suwCardBackground" + android:elevation="@dimen/suw_card_elevation" + tools:ignore="UnusedAttribute"> + + <com.android.setupwizardlib.view.BottomScrollView + android:id="@+id/suw_bottom_scroll_view" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:fillViewport="true"> + + <FrameLayout android:id="@+id/suw_layout_content" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:clipChildren="false" /> + + </com.android.setupwizardlib.view.BottomScrollView> + + <include layout="@layout/suw_progress_bar_stub" /> + + </FrameLayout> + + </LinearLayout> + + </com.android.setupwizardlib.view.Illustration> + + <com.android.setupwizardlib.view.NavigationBar + android:id="@+id/suw_layout_navigation_bar" + style="@style/SuwNavBarTheme" + android:layout_width="match_parent" + android:layout_height="@dimen/suw_navbar_height" /> + +</LinearLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_template_header.xml b/setupwizardlib/src/main/res/layout/suw_template_header.xml new file mode 100644 index 0000000..7945dcf --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_template_header.xml @@ -0,0 +1,81 @@ +<?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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <com.android.setupwizardlib.view.StickyHeaderScrollView + android:id="@+id/suw_bottom_scroll_view" + android:layout_weight="1" + android:layout_width="match_parent" + android:layout_height="0dp" + android:fillViewport="true"> + + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:clipChildren="false"> + + <FrameLayout + android:id="@+id/suw_layout_content" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_below="@+id/suw_layout_header" /> + + <LinearLayout + android:id="@+id/suw_layout_header" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:tag="stickyContainer"> + + <com.android.setupwizardlib.view.Illustration + android:id="@+id/suw_layout_decor" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@drawable/suw_layout_background" + android:elevation="@dimen/suw_title_area_elevation" + android:orientation="vertical" + tools:ignore="UnusedAttribute"> + + <TextView + android:id="@+id/suw_layout_title" + style="@style/SuwHeaderTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:tag="sticky" /> + + </com.android.setupwizardlib.view.Illustration> + + <include layout="@layout/suw_progress_bar_stub" /> + + </LinearLayout> + + </RelativeLayout> + + </com.android.setupwizardlib.view.StickyHeaderScrollView> + + <com.android.setupwizardlib.view.NavigationBar + android:id="@+id/suw_layout_navigation_bar" + style="@style/SuwNavBarTheme" + android:layout_width="match_parent" + android:layout_height="@dimen/suw_navbar_height" /> + +</LinearLayout> diff --git a/setupwizardlib/src/main/res/layout/suw_template_header_collapsed.xml b/setupwizardlib/src/main/res/layout/suw_template_header_collapsed.xml new file mode 100644 index 0000000..dab4df4 --- /dev/null +++ b/setupwizardlib/src/main/res/layout/suw_template_header_collapsed.xml @@ -0,0 +1,69 @@ +<?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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <FrameLayout + android:id="@+id/suw_layout_decor" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@drawable/suw_layout_background" + android:elevation="@dimen/suw_title_area_elevation" + tools:ignore="UnusedAttribute"> + + <TextView + android:id="@+id/suw_layout_title" + style="@style/SuwHeaderTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + </FrameLayout> + + <ViewStub + android:id="@+id/suw_layout_progress_stub" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="@dimen/suw_progress_bar_margin_vertical" + android:layout_marginTop="@dimen/suw_progress_bar_margin_vertical" + android:inflatedId="@+id/suw_layout_progress" + android:layout="@layout/suw_progress_bar" /> + + <com.android.setupwizardlib.view.BottomScrollView + android:id="@+id/suw_bottom_scroll_view" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:fillViewport="true"> + + <FrameLayout android:id="@+id/suw_layout_content" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:clipChildren="false" /> + + </com.android.setupwizardlib.view.BottomScrollView> + + <com.android.setupwizardlib.view.NavigationBar + android:id="@+id/suw_layout_navigation_bar" + style="@style/SuwNavBarTheme" + android:layout_width="match_parent" + android:layout_height="@dimen/suw_navbar_height" /> + +</LinearLayout> |