mobile/android/base/resources/layout/overlay_share_toast.xml
author Michael Comella <michael.l.comella@gmail.com>
Mon, 23 Mar 2015 20:04:18 -0700
changeset 258354 994526939c21
parent 258350 8a05ce8c5ff7
child 258355 d49aaecd32a3
permissions -rw-r--r--
Bug 1130203 - Add drop shadow to overlay share dialog result toast. r=margaret a=sylvestre

<?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/. -->

<FrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/dropshadow"
    android:padding="3dp">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/toolbar_grey_round"
        android:orientation="horizontal"
        android:padding="20dp">

        <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"/>

        <!-- 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>