summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorMichael Bestas <mikeioannina@gmail.com>2016-02-09 14:49:56 +0100
committerChippa-a <vusal1372@gmail.com>2019-10-25 15:55:25 +0300
commit23cf762d88301274ccd786a52f2ea42003dd9dac (patch)
tree842ef74d27e202ffa646694b0f9feb2d84f33288 /res
parent4aaf48c5ab1c55517a69c5acf7752858ffb2b7b7 (diff)
downloadandroid_packages_apps_Snap-23cf762d88301274ccd786a52f2ea42003dd9dac.tar.gz
android_packages_apps_Snap-23cf762d88301274ccd786a52f2ea42003dd9dac.tar.bz2
android_packages_apps_Snap-23cf762d88301274ccd786a52f2ea42003dd9dac.zip
Snap: Material toasts
* Match the framework toast appearance Change-Id: I886862f3087bcd5cb1cfa76f72731292b7511d07
Diffstat (limited to 'res')
-rw-r--r--res/drawable-hdpi/toast_frame.9.pngbin0 -> 1573 bytes
-rw-r--r--res/drawable-hdpi/toast_frame_holo.9.pngbin1585 -> 0 bytes
-rw-r--r--res/drawable-mdpi/toast_frame.9.pngbin0 -> 965 bytes
-rw-r--r--res/drawable-mdpi/toast_frame_holo.9.pngbin1585 -> 0 bytes
-rw-r--r--res/drawable-xhdpi/toast_frame.9.pngbin0 -> 2090 bytes
-rw-r--r--res/drawable-xhdpi/toast_frame_holo.9.pngbin1585 -> 0 bytes
-rw-r--r--res/drawable-xxhdpi/toast_frame.9.pngbin0 -> 2323 bytes
-rw-r--r--res/layout/rotate_text_toast.xml8
-rw-r--r--res/values/colors.xml2
-rw-r--r--res/values/styles.xml4
10 files changed, 9 insertions, 5 deletions
diff --git a/res/drawable-hdpi/toast_frame.9.png b/res/drawable-hdpi/toast_frame.9.png
new file mode 100644
index 000000000..a804a8a94
--- /dev/null
+++ b/res/drawable-hdpi/toast_frame.9.png
Binary files differ
diff --git a/res/drawable-hdpi/toast_frame_holo.9.png b/res/drawable-hdpi/toast_frame_holo.9.png
deleted file mode 100644
index f8f75db9b..000000000
--- a/res/drawable-hdpi/toast_frame_holo.9.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/toast_frame.9.png b/res/drawable-mdpi/toast_frame.9.png
new file mode 100644
index 000000000..778e4e676
--- /dev/null
+++ b/res/drawable-mdpi/toast_frame.9.png
Binary files differ
diff --git a/res/drawable-mdpi/toast_frame_holo.9.png b/res/drawable-mdpi/toast_frame_holo.9.png
deleted file mode 100644
index f8f75db9b..000000000
--- a/res/drawable-mdpi/toast_frame_holo.9.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xhdpi/toast_frame.9.png b/res/drawable-xhdpi/toast_frame.9.png
new file mode 100644
index 000000000..77e69c72a
--- /dev/null
+++ b/res/drawable-xhdpi/toast_frame.9.png
Binary files differ
diff --git a/res/drawable-xhdpi/toast_frame_holo.9.png b/res/drawable-xhdpi/toast_frame_holo.9.png
deleted file mode 100644
index f8f75db9b..000000000
--- a/res/drawable-xhdpi/toast_frame_holo.9.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-xxhdpi/toast_frame.9.png b/res/drawable-xxhdpi/toast_frame.9.png
new file mode 100644
index 000000000..edecb6320
--- /dev/null
+++ b/res/drawable-xxhdpi/toast_frame.9.png
Binary files differ
diff --git a/res/layout/rotate_text_toast.xml b/res/layout/rotate_text_toast.xml
index 2c89b6f59..474ea575d 100644
--- a/res/layout/rotate_text_toast.xml
+++ b/res/layout/rotate_text_toast.xml
@@ -24,16 +24,14 @@
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:background="@drawable/toast_frame_holo">
+ android:background="@drawable/toast_frame">
<TextView
android:id="@+id/message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:textAppearance="?android:textAppearanceMedium"
- android:textColor="@android:color/white"
+ android:textAppearance="@style/ToastTextAppearance"
+ android:textColor="@color/toast_text"
android:shadowColor="#BB000000"
android:shadowRadius="2.75" />
</FrameLayout>
</com.android.camera.ui.RotateLayout>
-
-
diff --git a/res/values/colors.xml b/res/values/colors.xml
index aea3485b9..c4672cf31 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -98,4 +98,6 @@
<color name="dialog_text">#000000</color>
<color name="dialog_button">#008B8B</color>
<color name="dialog_hr">#C4C4C4</color>
+
+ <color name="toast_text">@color/white</color>
</resources>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 966108a84..29075351d 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -339,4 +339,8 @@
<item name="android:gravity">center</item>
<item name="android:textSize">18sp</item>
</style>
+
+ <style name="ToastTextAppearance" parent="@android:style/TextAppearance">
+ <item name="android:fontFamily">sans-serif-condensed</item>
+ </style>
</resources>