summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice Lam <yukl@google.com>2015-09-14 10:33:48 -0700
committerMaurice Lam <yukl@google.com>2015-09-15 14:30:22 -0700
commit24f1d0b9512dfc20bb1814a4e63f976a59f3ad99 (patch)
tree20d92b6ee9a0163f9d7e24b9a8655565af56da34
parent95abb283deb209532bbbae4ade3f5cc149a548a6 (diff)
downloadsetupwizard-24f1d0b9512dfc20bb1814a4e63f976a59f3ad99.tar.gz
[SuwLib] Add RecyclerView templates
Add new "full-support" build variant that includes RecyclerView as one of its dependencies, and add RecyclerView templates to the library. Bug: 24103690 Change-Id: I01a2b7ba3f9ff1d30a9b8aa9061ffe2a42eed968
-rw-r--r--library/Android.mk35
-rw-r--r--library/build.gradle5
-rw-r--r--library/common-eclair-mr1.mk26
-rw-r--r--library/common-full-support.mk49
-rw-r--r--library/full-support/res/layout/suw_recycler_template_card.xml76
-rw-r--r--library/full-support/res/layout/suw_recycler_template_card_wide.xml77
-rw-r--r--library/full-support/res/layout/suw_recycler_template_header.xml77
-rw-r--r--library/full-support/res/layout/suw_recycler_template_header_collapsed.xml64
-rw-r--r--library/full-support/res/values-land/layouts.xml24
-rw-r--r--library/full-support/res/values-sw600dp-land/layouts.xml24
-rw-r--r--library/full-support/res/values-sw600dp/layouts.xml24
-rw-r--r--library/full-support/res/values/layouts.xml24
-rw-r--r--library/rules.gradle15
-rw-r--r--library/standalone-rules.gradle5
-rw-r--r--tools/gradle/settings.gradle3
15 files changed, 523 insertions, 5 deletions
diff --git a/library/Android.mk b/library/Android.mk
index 0ece411..bcbd0e9 100644
--- a/library/Android.mk
+++ b/library/Android.mk
@@ -1,3 +1,7 @@
+##
+# Build the platform version of setup wizard library.
+#
+
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
@@ -12,6 +16,10 @@ LOCAL_SRC_FILES := $(call all-java-files-under, main/src platform/src)
include $(BUILD_STATIC_JAVA_LIBRARY)
+##
+# Build eclair-mr1-compat library, which uses AppCompat support library to provide backwards
+# compatibility back to SDK v7.
+#
include $(CLEAR_VARS)
@@ -30,3 +38,30 @@ LOCAL_STATIC_JAVA_LIBRARIES := \
android-support-v7-appcompat
include $(BUILD_STATIC_JAVA_LIBRARY)
+
+
+##
+# Build the full-support library, which includes RecyclerView and any other support libraries as
+# they are integrated.
+#
+include $(CLEAR_VARS)
+
+LOCAL_AAPT_FLAGS := --auto-add-overlay \
+ --extra-packages android.support.v7.appcompat \
+ --extra-packages android.support.v7.recyclerview
+LOCAL_MANIFEST_FILE := main/AndroidManifest.xml
+LOCAL_MODULE := setup-wizard-lib-full-support
+LOCAL_RESOURCE_DIR := \
+ $(LOCAL_PATH)/main/res \
+ $(LOCAL_PATH)/eclair-mr1/res \
+ $(LOCAL_PATH)/full-support/res \
+ frameworks/support/v7/appcompat/res \
+ frameworks/support/v7/recyclerview/res
+LOCAL_SDK_VERSION := current
+LOCAL_SRC_FILES := $(call all-java-files-under, main/src eclair-mr1/src)
+LOCAL_STATIC_JAVA_LIBRARIES := \
+ android-support-v4 \
+ android-support-v7-appcompat \
+ android-support-v7-recyclerview
+
+include $(BUILD_STATIC_JAVA_LIBRARY)
diff --git a/library/build.gradle b/library/build.gradle
index b6e97a1..b9a530c 100644
--- a/library/build.gradle
+++ b/library/build.gradle
@@ -26,7 +26,10 @@ ext {
// compile deps['project-name']
// }
//
- deps = ['support-appcompat-v7': project(':support-appcompat-v7')]
+ deps = [
+ 'support-appcompat-v7': project(':support-appcompat-v7'),
+ 'support-recyclerview-v7': project(':support-recyclerview-v7')
+ ]
}
apply from: 'rules.gradle'
diff --git a/library/common-eclair-mr1.mk b/library/common-eclair-mr1.mk
index 106ebea..e641d16 100644
--- a/library/common-eclair-mr1.mk
+++ b/library/common-eclair-mr1.mk
@@ -12,10 +12,30 @@
# include frameworks/opt/setupwizard/library/common-eclair-mr1.mk
#
+# Check that LOCAL_RESOURCE_DIR is defined
+ifeq (,$(LOCAL_RESOURCE_DIR))
+$(error LOCAL_RESOURCE_DIR must be defined)
+endif
+
+# Add --auto-add-overlay flag if not present
+ifeq (,$(findstring --auto-add-overlay, $(LOCAL_AAPT_FLAGS)))
+LOCAL_AAPT_FLAGS += --auto-add-overlay
+endif
+
+# Include setup wizard library, if not already included
+ifeq (,$(findstring setup-wizard-lib-eclair-mr1-compat,$(LOCAL_STATIC_JAVA_LIBRARIES)))
LOCAL_RESOURCE_DIR += \
$(call my-dir)/main/res \
$(call my-dir)/eclair-mr1/res
-LOCAL_AAPT_FLAGS += --auto-add-overlay \
- --extra-packages com.android.setupwizardlib \
- --extra-packages android.support.v7.appcompat
+LOCAL_AAPT_FLAGS += --extra-packages com.android.setupwizardlib
LOCAL_STATIC_JAVA_LIBRARIES += setup-wizard-lib-eclair-mr1-compat
+endif
+
+## Include transitive dependencies below
+
+# Include support-v7-appcompat, if not already included
+ifeq (,$(findstring android-support-v7-appcompat,$(LOCAL_STATIC_JAVA_LIBRARIES)))
+LOCAL_RESOURCE_DIR += frameworks/support/v7/appcompat/res
+LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.appcompat
+LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-appcompat
+endif
diff --git a/library/common-full-support.mk b/library/common-full-support.mk
new file mode 100644
index 0000000..9ff82ce
--- /dev/null
+++ b/library/common-full-support.mk
@@ -0,0 +1,49 @@
+#
+# Include this make file to build your application against this module.
+#
+# Make sure to include it after you've set all your desired LOCAL variables.
+# Note that you must explicitly set your LOCAL_RESOURCE_DIR before including this file.
+#
+# For example:
+#
+# LOCAL_RESOURCE_DIR := \
+# $(LOCAL_PATH)/res
+#
+# include frameworks/opt/setupwizard/library/common-eclair-mr1.mk
+#
+
+# Check that LOCAL_RESOURCE_DIR is defined
+ifeq (,$(LOCAL_RESOURCE_DIR))
+$(error LOCAL_RESOURCE_DIR must be defined)
+endif
+
+# Add --auto-add-overlay flag if not present
+ifeq (,$(findstring --auto-add-overlay, $(LOCAL_AAPT_FLAGS)))
+LOCAL_AAPT_FLAGS += --auto-add-overlay
+endif
+
+# Include setup wizard library, if not already included
+ifeq (,$(findstring setup-wizard-lib-full-support,$(LOCAL_STATIC_JAVA_LIBRARIES)))
+LOCAL_RESOURCE_DIR += \
+ $(call my-dir)/main/res \
+ $(call my-dir)/eclair-mr1/res \
+ $(call my-dir)/full-support/res
+LOCAL_AAPT_FLAGS += --extra-packages com.android.setupwizardlib
+LOCAL_STATIC_JAVA_LIBRARIES += setup-wizard-lib-full-support
+endif
+
+## Include transitive dependencies below
+
+# Include support-v7-appcompat, if not already included
+ifeq (,$(findstring android-support-v7-appcompat,$(LOCAL_STATIC_JAVA_LIBRARIES)))
+LOCAL_RESOURCE_DIR += frameworks/support/v7/appcompat/res
+LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.appcompat
+LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-appcompat
+endif
+
+# Include support-v7-recyclerview, if not already included
+ifeq (,$(findstring android-support-v7-recyclerview,$(LOCAL_STATIC_JAVA_LIBRARIES)))
+LOCAL_RESOURCE_DIR += frameworks/support/v7/recyclerview/res
+LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.recyclerview
+LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-recyclerview
+endif
diff --git a/library/full-support/res/layout/suw_recycler_template_card.xml b/library/full-support/res/layout/suw_recycler_template_card.xml
new file mode 100644
index 0000000..053abf9
--- /dev/null
+++ b/library/full-support/res/layout/suw_recycler_template_card.xml
@@ -0,0 +1,76 @@
+<?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">
+
+ <android.support.v7.widget.RecyclerView
+ android:id="@+id/suw_recycler_view"
+ 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" />
+
+ <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/library/full-support/res/layout/suw_recycler_template_card_wide.xml b/library/full-support/res/layout/suw_recycler_template_card_wide.xml
new file mode 100644
index 0000000..33897c6
--- /dev/null
+++ b/library/full-support/res/layout/suw_recycler_template_card_wide.xml
@@ -0,0 +1,77 @@
+<?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">
+
+ <android.support.v7.widget.RecyclerView
+ android:id="@+id/suw_recycler_view"
+ 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" />
+
+ <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/library/full-support/res/layout/suw_recycler_template_header.xml b/library/full-support/res/layout/suw_recycler_template_header.xml
new file mode 100644
index 0000000..b46099d
--- /dev/null
+++ b/library/full-support/res/layout/suw_recycler_template_header.xml
@@ -0,0 +1,77 @@
+<?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.
+-->
+
+<!-- TODO: Make the template header scrollable -->
+<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:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1">
+
+ <android.support.v7.widget.RecyclerView
+ android:id="@+id/suw_recycler_view"
+ 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" />
+
+ </FrameLayout>
+
+
+ </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/library/full-support/res/layout/suw_recycler_template_header_collapsed.xml b/library/full-support/res/layout/suw_recycler_template_header_collapsed.xml
new file mode 100644
index 0000000..e92ee1c
--- /dev/null
+++ b/library/full-support/res/layout/suw_recycler_template_header_collapsed.xml
@@ -0,0 +1,64 @@
+<?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" />
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1">
+
+ <android.support.v7.widget.RecyclerView
+ android:id="@+id/suw_recycler_view"
+ 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" />
+
+ </FrameLayout>
+
+ <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/library/full-support/res/values-land/layouts.xml b/library/full-support/res/values-land/layouts.xml
new file mode 100644
index 0000000..5bd3ea8
--- /dev/null
+++ b/library/full-support/res/values-land/layouts.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<resources>
+
+ <item name="suw_recycler_template" type="layout">@layout/suw_recycler_template_header_collapsed</item>
+ <item name="suw_recycler_template_short" type="layout">@layout/suw_recycler_template_header_collapsed</item>
+
+</resources>
+
diff --git a/library/full-support/res/values-sw600dp-land/layouts.xml b/library/full-support/res/values-sw600dp-land/layouts.xml
new file mode 100644
index 0000000..3ac3597
--- /dev/null
+++ b/library/full-support/res/values-sw600dp-land/layouts.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<resources>
+
+ <item name="suw_recycler_template" type="layout">@layout/suw_recycler_template_card_wide</item>
+ <item name="suw_recycler_template_short" type="layout">@layout/suw_recycler_template_card_wide</item>
+
+</resources>
+
diff --git a/library/full-support/res/values-sw600dp/layouts.xml b/library/full-support/res/values-sw600dp/layouts.xml
new file mode 100644
index 0000000..0884c8a
--- /dev/null
+++ b/library/full-support/res/values-sw600dp/layouts.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<resources>
+
+ <item name="suw_recycler_template" type="layout">@layout/suw_recycler_template_card</item>
+ <item name="suw_recycler_template_short" type="layout">@layout/suw_recycler_template_card</item>
+
+</resources>
+
diff --git a/library/full-support/res/values/layouts.xml b/library/full-support/res/values/layouts.xml
new file mode 100644
index 0000000..ff5cff1
--- /dev/null
+++ b/library/full-support/res/values/layouts.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<resources>
+
+ <item name="suw_recycler_template" type="layout">@layout/suw_recycler_template_header</item>
+ <item name="suw_recycler_template_short" type="layout">@layout/suw_recycler_template_header_collapsed</item>
+
+</resources>
+
diff --git a/library/rules.gradle b/library/rules.gradle
index fad7f50..8021372 100644
--- a/library/rules.gradle
+++ b/library/rules.gradle
@@ -58,6 +58,16 @@ android {
eclairMr1CompatCompile deps['support-appcompat-v7']
}
}
+
+ // This build depends on any support library that setup wizard library integrates with,
+ // including RecyclerView, AppCompat, and possibly Design support library in the future.
+ fullSupport {
+ minSdkVersion 7
+ dependencies {
+ fullSupportCompile deps['support-appcompat-v7']
+ fullSupportCompile deps['support-recyclerview-v7']
+ }
+ }
}
platform {
@@ -75,6 +85,11 @@ android {
res.srcDirs = ['eclair-mr1/res']
}
+ fullSupport {
+ java.srcDirs = ['eclair-mr1/src']
+ res.srcDirs = ['eclair-mr1/res', 'full-support/res']
+ }
+
androidTest {
manifest.srcFile 'test/AndroidManifest.xml'
java.srcDirs = ['test/src']
diff --git a/library/standalone-rules.gradle b/library/standalone-rules.gradle
index e607902..5a4290a 100644
--- a/library/standalone-rules.gradle
+++ b/library/standalone-rules.gradle
@@ -25,7 +25,10 @@ ext {
// compile deps['project-name']
// }
//
- deps = ['support-appcompat-v7': 'com.android.support:appcompat-v7:22.2.1']
+ deps = [
+ 'support-appcompat-v7': 'com.android.support:appcompat-v7:22.2.1',
+ 'support-recyclerview-v7': 'com.android.support:recyclerview-v7:22.2.1'
+ ]
}
apply from: 'rules.gradle'
diff --git a/tools/gradle/settings.gradle b/tools/gradle/settings.gradle
index abdad8a..8b24c8f 100644
--- a/tools/gradle/settings.gradle
+++ b/tools/gradle/settings.gradle
@@ -12,3 +12,6 @@ project(':support-v4').projectDir = new File(supportLibsRoot, 'v4')
include(':support-appcompat-v7')
project(':support-appcompat-v7').projectDir = new File(supportLibsRoot, 'appcompat')
+
+include(':support-recyclerview-v7')
+project(':support-recyclerview-v7').projectDir = new File(supportLibsRoot, 'recyclerview')