Bug 1130203 - Add drop shadow to overlay share dialog result toast. r=margaret a=sylvestre
authorMichael Comella <michael.l.comella@gmail.com>
Mon, 23 Mar 2015 20:04:18 -0700
changeset 258354 994526939c21
parent 258353 dcadb3572692
child 258355 d49aaecd32a3
push id4648
push usermichael.l.comella@gmail.com
push date2015-04-08 16:26 +0000
treeherdermozilla-beta@e399294c9df3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret, sylvestre
bugs1130203
milestone38.0
Bug 1130203 - Add drop shadow to overlay share dialog result toast. r=margaret a=sylvestre
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>