mobile/android/base/resources/layout/overlay_share_dialog.xml
author Michael Comella <michael.l.comella@gmail.com>
Thu, 26 Feb 2015 17:33:36 -0800
changeset 258337 8002be97de82
parent 258336 57a21c5e1100
child 258338 9a5a28809525
permissions -rw-r--r--
Bug 1130203 - Move share overlay title styles into styles.xml and revise to match mocks. r=mhaigh 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/. -->

<!-- Serves to position the content on the screen (bottom, centered) and provide the drop-shadow -->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/sharedialog"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:layout_marginLeft="15dp"
    android:layout_marginRight="15dp"
    android:clipChildren="false"
    android:clipToPadding="false">

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|center"
        android:paddingTop="8dp"
        android:orientation="vertical">

        <!-- Title -->
        <TextView
            android:id="@+id/title"
            style="@style/ShareOverlayTitle"
            android:textAppearance="@style/TextAppearance.ShareOverlay.Title"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="8dp"/>

        <!-- Subtitle (url) -->
        <TextView
            android:id="@+id/subtitle"
            style="@style/ShareOverlayTitle"
            android:textAppearance="@style/TextAppearance.ShareOverlay.Subtitle"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"/>

        <!-- TODO: Add back drop shadow? -->
        <!-- Buttons -->
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="20dp"
            android:background="@color/overlay_share_background"
            android:orientation="vertical">

            <!-- TODO: Once API 11 is available, stick "showDividers=middle" into the parent and get rid
                       of these evil separator views. -->

            <!-- "Send to Firefox Sync" -->
            <org.mozilla.gecko.overlays.ui.SendTabList
                style="@style/ShareOverlayButton"
                android:id="@+id/overlay_send_tab_btn"
                android:padding="0dp"/>

            <!-- Evil separator -->
            <View
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:background="@color/background_light"/>

            <!-- "Add to reading list" -->
            <org.mozilla.gecko.overlays.ui.OverlayDialogButton
                style="@style/ShareOverlayButton.Text.Container"
                android:id="@+id/overlay_share_reading_list_btn"
                android:enabled="false"/>

            <!-- Evil separator -->
            <View
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:background="@color/background_light"/>

            <!-- "Add bookmark" -->
            <org.mozilla.gecko.overlays.ui.OverlayDialogButton
                style="@style/ShareOverlayButton.Text.Container"
                android:id="@+id/overlay_share_bookmark_btn"
                android:enabled="false"/>

        </LinearLayout>
    </LinearLayout>

</FrameLayout>