mobile/android/base/resources/layout/overlay_share_toast.xml
author Michael Comella <michael.l.comella@gmail.com>
Tue, 24 Mar 2015 17:16:00 -0700
changeset 258355 d49aaecd32a35e710de0e12bb93f2541efa7cd73
parent 258354 994526939c21c5993dae6bc2de2c97abd4784504
permissions -rw-r--r--
Bug 1130203 - Remove retry button in share overlay retry toast. r=margaret a=sylvestre Toasts are unclickable (http://stackoverflow.com/a/20698525) so this button never actually did anything. If we want to add this functionality, we'd have to use a new toasting API (dialog was suggested) and potentially create a new Activity (so it can be shown over another underlying Activity). We could implement this but it'd be better to spend time creating system notifications to show tab sending progress (bug 1145434).

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

    <TextView
        android:id="@+id/overlay_toast_message"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"
        android:padding="20dp"
        android:background="@drawable/toolbar_grey_round"
        android:textColor="@color/text_and_tabs_tray_grey"
        android:textSize="14sp"
        android:drawablePadding="15dp"
        android:drawableLeft="@drawable/overlay_check"/>

</FrameLayout>