diff options
author | Clark Scheff <clark@cyngn.com> | 2014-09-18 15:51:51 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyngn.com> | 2014-10-03 02:18:45 +0000 |
commit | 4658edd5edd57d75d7d2877edb4cb101a73f666b (patch) | |
tree | a0e7bc1d9ddb0e29806ea1757fe8afa6f2a0bcf6 /res | |
parent | f0e9a542fe55da1d3c3509e16b71755c9c518c7c (diff) | |
download | packages_apps_ThemeChooser-4658edd5edd57d75d7d2877edb4cb101a73f666b.zip packages_apps_ThemeChooser-4658edd5edd57d75d7d2877edb4cb101a73f666b.tar.gz packages_apps_ThemeChooser-4658edd5edd57d75d7d2877edb4cb101a73f666b.tar.bz2 |
Add handling of themes that are being processed
When a theme is still being processed by the ThemeService we show
a "processing" overlay to let the user know their theme is not
quite ready to be applied. Once the theme is done processing the
overlay fades out and the user can apply the theme.
We also do not show the "theme installed" notification for a theme
that is being processed until it is finished processing.
Change-Id: I0486da3a5e2d0b55c2b3828613ace7e2ccf460a2
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/fragment_pager_list.xml | 1 | ||||
-rw-r--r-- | res/layout/processing_layout.xml | 22 | ||||
-rw-r--r-- | res/values/colors.xml | 2 | ||||
-rw-r--r-- | res/values/strings.xml | 2 |
4 files changed, 27 insertions, 0 deletions
diff --git a/res/layout/fragment_pager_list.xml b/res/layout/fragment_pager_list.xml index c562080..ccc301a 100644 --- a/res/layout/fragment_pager_list.xml +++ b/res/layout/fragment_pager_list.xml @@ -48,6 +48,7 @@ </LinearLayout> <include layout="@layout/confirm_cancel_overlay"/> <include layout="@layout/customize_reset_theme_layout"/> + <include layout="@layout/processing_layout"/> <View android:id="@+id/clickable_view" android:layout_width="match_parent" diff --git a/res/layout/processing_layout.xml b/res/layout/processing_layout.xml new file mode 100644 index 0000000..9e8bc25 --- /dev/null +++ b/res/layout/processing_layout.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2014 Cyanogen, Inc. +--> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/processing_theme_layout" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="gone" + android:background="@color/apply_overlay_background"> + + <com.cyngn.theme.widget.LatoTextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:gravity="center" + android:textSize="20sp" + android:textAllCaps="true" + android:textColor="@color/processing_text_color" + android:text="@string/processing_theme" /> + +</FrameLayout>
\ No newline at end of file diff --git a/res/values/colors.xml b/res/values/colors.xml index 2f51e9d..15d86f0 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -53,4 +53,6 @@ <color name="theme_title_text_color">#78000000</color> <color name="theme_author_text_color">#40000000</color> + <color name="processing_text_color">#ffffff</color> + </resources> diff --git a/res/values/strings.xml b/res/values/strings.xml index 6a0547f..ca09f9d 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -71,4 +71,6 @@ <string name="wallpaper_external_title">Pick image</string> <string name="wallpaper_none_title">None</string> + <string name="processing_theme">Processing</string> + </resources> |