summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorClark Scheff <clark@cyngn.com>2014-09-18 15:51:51 -0700
committerGerrit Code Review <gerrit@cyngn.com>2014-10-03 02:18:45 +0000
commit4658edd5edd57d75d7d2877edb4cb101a73f666b (patch)
treea0e7bc1d9ddb0e29806ea1757fe8afa6f2a0bcf6 /res/layout
parentf0e9a542fe55da1d3c3509e16b71755c9c518c7c (diff)
downloadpackages_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/layout')
-rw-r--r--res/layout/fragment_pager_list.xml1
-rw-r--r--res/layout/processing_layout.xml22
2 files changed, 23 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