summaryrefslogtreecommitdiffstats
path: root/library/main/res/layout/suw_no_scroll_template_card.xml
diff options
context:
space:
mode:
authorMaurice Lam <yukl@google.com>2015-04-02 17:03:08 -0700
committerMaurice Lam <yukl@google.com>2015-04-03 18:26:42 -0700
commitd61674efcfaa9f591a44fc75d59566cdd5b409eb (patch)
tree220ca8157515e15800bd28058bede2f794a42499 /library/main/res/layout/suw_no_scroll_template_card.xml
parente7b519c1769be4e43fff8c9a909cb1ba15f25ebb (diff)
downloadandroid_frameworks_opt_setupwizard-d61674efcfaa9f591a44fc75d59566cdd5b409eb.tar.gz
android_frameworks_opt_setupwizard-d61674efcfaa9f591a44fc75d59566cdd5b409eb.tar.bz2
android_frameworks_opt_setupwizard-d61674efcfaa9f591a44fc75d59566cdd5b409eb.zip
[SetupWizardLib] Add progress bar support
Added methods showProgressBar, hideProgressBar and isProgressBarShown to SetupWizardLayout, that will show the bar if the corresponding ViewStub exists. This implementation has an improvement over existing Setup Wizard implementations in that it supports ListViews as well as ScrollViews, and the progress bar will be sticky together with the header instead of being scrolled away. Change-Id: Ifd7acae36a9b244d759b6528bb5dfdc3e1d15091
Diffstat (limited to 'library/main/res/layout/suw_no_scroll_template_card.xml')
-rw-r--r--library/main/res/layout/suw_no_scroll_template_card.xml12
1 files changed, 10 insertions, 2 deletions
diff --git a/library/main/res/layout/suw_no_scroll_template_card.xml b/library/main/res/layout/suw_no_scroll_template_card.xml
index 00b10dd..21356c2 100644
--- a/library/main/res/layout/suw_no_scroll_template_card.xml
+++ b/library/main/res/layout/suw_no_scroll_template_card.xml
@@ -46,13 +46,21 @@
android:layout_height="wrap_content" />
<FrameLayout
- android:id="@+id/suw_layout_content"
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" />
+ tools:ignore="UnusedAttribute">
+
+ <include layout="@layout/suw_progress_bar_stub" />
+
+ <FrameLayout
+ android:id="@+id/suw_layout_content"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+
+ </FrameLayout>
</LinearLayout>