summaryrefslogtreecommitdiffstats
path: root/mobile/android/fenix/app/src/main/res/layout/fragment_share.xml
blob: 510237a3e3b01ebbe39b14f4c7808638c55f2f83 (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
84
85
86
<?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/. -->

<androidx.constraintlayout.widget.ConstraintLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/shareWrapper"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:clipToPadding="false"
    android:fitsSystemWindows="true"
    tools:context="org.mozilla.fenix.share.ShareFragment">

    <FrameLayout
        android:id="@+id/closeSharingScrim"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="?scrim"/>

    <FrameLayout
        android:id="@+id/closeSharingContent"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toTopOf="@id/sharingLayout"/>

    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/sharingLayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/bottom_sheet_dialog_fragment_background"
        app:layout_constraintBottom_toBottomOf="parent">

        <FrameLayout
            android:id="@+id/devicesShareLayout"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:layout_constraintBottom_toTopOf="@id/divider_line" />

        <FrameLayout
            android:id="@+id/appsShareLayout"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:layout_constraintTop_toBottomOf="@id/divider_line" />

        <View
            android:id="@+id/divider_line"
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:layout_marginTop="8dp"
            android:background="?borderPrimary"
            app:layout_constraintBottom_toTopOf="@id/appsShareLayout" />

        <View
            android:id="@+id/divider_line_apps_share_and_pdf_section"
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:layout_marginTop="8dp"
            android:background="?borderPrimary"
            app:layout_constraintTop_toBottomOf="@id/appsShareLayout" />

        <androidx.compose.ui.platform.ComposeView
            android:id="@+id/save_pdf"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:layout_constraintTop_toBottomOf="@id/divider_line_apps_share_and_pdf_section" />

        <androidx.compose.ui.platform.ComposeView
            android:id="@+id/print"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintTop_toBottomOf="@id/save_pdf" />

        <androidx.constraintlayout.widget.Group
            android:id="@+id/devicesShareGroup"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:constraint_referenced_ids="divider_line,devicesShareLayout" />

    </androidx.constraintlayout.widget.ConstraintLayout>

</androidx.constraintlayout.widget.ConstraintLayout>