From accf71cc2f859c8c8d241e7f67fe118ac82bf6f5 Mon Sep 17 00:00:00 2001 From: Clark Scheff Date: Wed, 16 Jul 2014 16:53:08 -0700 Subject: Add applying theme progress along with animations. Change-Id: Id7835d3be0b9d9c8d861e820e63b45e17235ef68 --- res/drawable/apply_progress_background.xml | 8 ++++ res/drawable/apply_progress_bar.xml | 12 ++++++ res/drawable/apply_progress_indicator.xml | 8 ++++ res/layout/v2_fragment_pager_list.xml | 67 +++++++++++++++++++----------- res/values/colors.xml | 3 ++ res/values/dimens.xml | 1 + 6 files changed, 74 insertions(+), 25 deletions(-) create mode 100644 res/drawable/apply_progress_background.xml create mode 100644 res/drawable/apply_progress_bar.xml create mode 100644 res/drawable/apply_progress_indicator.xml (limited to 'res') diff --git a/res/drawable/apply_progress_background.xml b/res/drawable/apply_progress_background.xml new file mode 100644 index 0000000..47c2530 --- /dev/null +++ b/res/drawable/apply_progress_background.xml @@ -0,0 +1,8 @@ + + + + + + + \ No newline at end of file diff --git a/res/drawable/apply_progress_bar.xml b/res/drawable/apply_progress_bar.xml new file mode 100644 index 0000000..a3cbc6f --- /dev/null +++ b/res/drawable/apply_progress_bar.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/res/drawable/apply_progress_indicator.xml b/res/drawable/apply_progress_indicator.xml new file mode 100644 index 0000000..0f332ed --- /dev/null +++ b/res/drawable/apply_progress_indicator.xml @@ -0,0 +1,8 @@ + + + + + + + \ No newline at end of file diff --git a/res/layout/v2_fragment_pager_list.xml b/res/layout/v2_fragment_pager_list.xml index 70c1b3c..fc3c26e 100644 --- a/res/layout/v2_fragment_pager_list.xml +++ b/res/layout/v2_fragment_pager_list.xml @@ -40,39 +40,56 @@ - - + + - + - + + - + android:layout_gravity="center_vertical|right" + android:padding="@dimen/apply_progress_padding" + android:indeterminate="false" + android:max="100" + android:progress="0" + android:progressDrawable="@drawable/apply_progress_bar" + android:visibility="gone" + style="@android:style/Widget.ProgressBar.Horizontal"/> + \ No newline at end of file diff --git a/res/values/colors.xml b/res/values/colors.xml index c25d282..cdc1eca 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -41,4 +41,7 @@ #cd00b3e6 #cd1fcdff #cd0093bd + + #e0dfe1 + #00b3e6 diff --git a/res/values/dimens.xml b/res/values/dimens.xml index a6586ed..346c22f 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -65,4 +65,5 @@ 4dp 10dp + 10dp -- cgit v1.1