Bug 1130203 - Add drop shadow to overlay share dialog result toast. r=margaret
authorMichael Comella <michael.l.comella@gmail.com>
Mon, 23 Mar 2015 20:04:18 -0700
changeset 265843 764ccc7fdc3031e7adbf2ac5b83e9b3304057e0a
parent 265842 b3901be2155dc72f8dbac5ad7cf3d9f5fa61f0a9
child 265844 6991efa59daf40e3bc1f54b19865f9b38444a684
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret
bugs1130203
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1130203 - Add drop shadow to overlay share dialog result toast. r=margaret
mobile/android/base/resources/layout/overlay_share_toast.xml
--- a/mobile/android/base/resources/layout/overlay_share_toast.xml
+++ b/mobile/android/base/resources/layout/overlay_share_toast.xml
@@ -1,35 +1,43 @@
 <?xml version="1.0" encoding="utf-8"?>
 
 <!-- This Source Code Form is subject to the terms of the Mozilla Public
    - License, v. 2.0. If a copy of the MPL was not distributed with this
    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
 
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<FrameLayout
+    xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
-    android:background="@drawable/toolbar_grey_round"
-    android:orientation="horizontal"
-    android:padding="20dp">
+    android:background="@drawable/dropshadow"
+    android:padding="3dp">
 
-    <TextView
-        android:id="@+id/overlay_toast_message"
-        android:layout_width="wrap_content"
+    <LinearLayout
+        android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:layout_gravity="center_vertical"
-        android:layout_weight="2"
-        android:layout_marginRight="10dp"
-        android:textColor="@color/text_and_tabs_tray_grey"
-        android:textSize="14sp"
-        android:drawablePadding="15dp"
-        android:drawableLeft="@drawable/overlay_check"/>
+        android:background="@drawable/toolbar_grey_round"
+        android:orientation="horizontal"
+        android:padding="20dp">
 
-    <!-- Retry button -->
-    <Button
-        android:id="@+id/overlay_toast_retry_btn"
-        android:layout_height="wrap_content"
-        android:layout_width="wrap_content"
-        android:layout_weight="1"
-        android:text="@string/overlay_share_retry"
-        android:onClick="selfDestruct" />
+        <TextView
+            android:id="@+id/overlay_toast_message"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_gravity="center_vertical"
+            android:layout_weight="2"
+            android:layout_marginRight="10dp"
+            android:textColor="@color/text_and_tabs_tray_grey"
+            android:textSize="14sp"
+            android:drawablePadding="15dp"
+            android:drawableLeft="@drawable/overlay_check"/>
 
-</LinearLayout>
+        <!-- Retry button -->
+        <Button
+            android:id="@+id/overlay_toast_retry_btn"
+            android:layout_height="wrap_content"
+            android:layout_width="wrap_content"
+            android:layout_weight="1"
+            android:text="@string/overlay_share_retry"
+            android:onClick="selfDestruct" />
+
+    </LinearLayout>
+</FrameLayout>