Files
palemoon27/mobile/android/base/resources/layout/overlay_share_dialog.xml
T
2018-07-24 23:11:02 +08:00

76 lines
2.8 KiB
XML

<?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="match_parent"
android:layout_height="match_parent"
android:clipChildren="false"
android:clipToPadding="false">
<LinearLayout
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.goanna.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 to reading list" -->
<org.mozilla.goanna.overlays.ui.OverlayDialogButton
style="@style/ShareOverlayRow"
android:id="@+id/overlay_share_reading_list_btn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:enabled="false"/>
<!-- "Add bookmark" -->
<org.mozilla.goanna.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"/>
</LinearLayout>
</FrameLayout>