summaryrefslogtreecommitdiffstats
path: root/mobile/android/base/resources/layout/overlay_share_dialog.xml
blob: b7fcd8747b3a40050a8032cb70305caa73eabdeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?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 -->

<merge
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:gecko="http://schemas.android.com/apk/res-auto">
    <LinearLayout
        android:id="@+id/sharedialog"
        android:layout_width="300dp"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|center"
        android:layout_marginLeft="15dp"
        android:layout_marginRight="15dp"
        android:paddingTop="8dp"
        android:orientation="vertical">

        <!-- Title -->
        <TextView
            android:id="@+id/title"
            style="@style/ShareOverlayTitle"
            android:textAppearance="@style/TextAppearance.ShareOverlay.Header"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="8dp"
            android:maxLines="2"
            android:textSize="20sp"
            android:ellipsize="end"/>

        <!-- Subtitle (url) -->
        <TextView
            android:id="@+id/subtitle"
            style="@style/ShareOverlayTitle"
            android:textAppearance="@style/TextAppearance.ShareOverlay.Header"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="20dp"
            android:textSize="12sp"
            android:scrollHorizontally="true"/>

        <!-- TODO: Add back drop shadow (bug 1146488)? -->
        <!-- Buttons -->
        <!-- "Send to Firefox Sync" -->
        <org.mozilla.gecko.overlays.ui.SendTabList
            android:id="@+id/overlay_send_tab_btn"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:divider="@null"/>

        <!-- "Add bookmark" -->
        <org.mozilla.gecko.overlays.ui.OverlayDialogButton
            style="@style/ShareOverlayRow"
            android:id="@+id/overlay_share_bookmark_btn"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:enabled="false"
            gecko:drawable="@drawable/overlay_share_bookmark_button"
            gecko:enabledText="@string/overlay_share_bookmark_btn_label"
            gecko:disabledText="@string/overlay_share_bookmark_btn_label_already"/>

    </LinearLayout>

    <ImageView
        android:id="@+id/check"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:layout_gravity="center"
        android:src="@drawable/overlay_check"
        android:visibility="invisible"/>

    <!-- This transparent View is used to overlay the
         entire Activity with an onClickListener. -->
    <View
        android:id="@+id/fullscreen_click_target"
        android:layout_height="match_parent"
        android:layout_width="match_parent"
        android:visibility="gone"/>
</merge>