summaryrefslogtreecommitdiffstats
path: root/res/layout/confirm_cancel_overlay.xml
diff options
context:
space:
mode:
authorClark Scheff <clark@cyngn.com>2014-09-23 15:12:46 -0700
committerClark Scheff <clark@cyngn.com>2014-09-25 14:18:01 -0700
commit885239ffdcf1538427226e582b0aee80ce920afd (patch)
tree97e18f054bb9611bebf24fce8b5d686d02fcf283 /res/layout/confirm_cancel_overlay.xml
parenteaeb49e8872e93e209b03917db08b56b0dbcf60b (diff)
downloadpackages_apps_ThemeChooser-885239ffdcf1538427226e582b0aee80ce920afd.tar.gz
packages_apps_ThemeChooser-885239ffdcf1538427226e582b0aee80ce920afd.tar.bz2
packages_apps_ThemeChooser-885239ffdcf1538427226e582b0aee80ce920afd.zip
Repurpose apply theme layout for deleting themes
The apply theme overlay is now the ConfirmCancelOverlay. It has been generalized so that it can be used for the delete theme confirmation overlay as well as the apply theme overlay. Change-Id: I9ea352291c44ba2fb453ea7325e3d8f0bce46fe4
Diffstat (limited to 'res/layout/confirm_cancel_overlay.xml')
-rw-r--r--res/layout/confirm_cancel_overlay.xml57
1 files changed, 57 insertions, 0 deletions
diff --git a/res/layout/confirm_cancel_overlay.xml b/res/layout/confirm_cancel_overlay.xml
new file mode 100644
index 0000000..51ee6a0
--- /dev/null
+++ b/res/layout/confirm_cancel_overlay.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 Cyanogen, Inc.
+-->
+<com.cyngn.theme.widget.ConfirmCancelOverlay
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/confirm_cancel_overlay"
+ 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:id="@+id/overlay_title"
+ android:layout_width="wrap_content"
+ android:layout_height="132dp"
+ android:layout_gravity="top|center_horizontal"
+ android:gravity="center"
+ style="@style/apply_overlay_text_style"
+ android:text="@string/apply_theme_overlay_title"/>
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center">
+
+ <ImageView
+ android:id="@+id/cancel"
+ android:layout_width="72dp"
+ android:layout_height="72dp"
+ android:layout_gravity="center_vertical"
+ android:clickable="true"
+ android:src="@drawable/ic_apply_cancel"
+ android:scaleType="center"
+ android:background="@drawable/apply_cancel_bg"/>
+
+ <View
+ android:layout_width="2dp"
+ android:layout_height="56dp"
+ android:layout_gravity="center_vertical"
+ android:background="@color/apply_overlay_separator_color"
+ android:layout_marginStart="31dp"
+ android:layout_marginEnd="31dp"/>
+
+ <ImageView
+ android:id="@+id/accept"
+ android:layout_width="72dp"
+ android:layout_height="72dp"
+ android:layout_gravity="center_vertical"
+ android:clickable="true"
+ android:src="@drawable/ic_apply_apply"
+ android:scaleType="center"
+ android:background="@drawable/apply_cancel_bg"/>
+
+ </LinearLayout>
+
+</com.cyngn.theme.widget.ConfirmCancelOverlay> \ No newline at end of file