summaryrefslogtreecommitdiffhomepage
path: root/ui/src/main/res/layout/add_tunnels_bottom_sheet.xml
blob: 68f186b6b0d5dfd96837fdc4b1d8b631a6837cde (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
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/root"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:paddingTop="@dimen/bottom_sheet_top_padding">

    <com.google.android.material.button.MaterialButton
        android:id="@+id/create_from_file"
        style="@style/Widget.MaterialComponents.Button.TextButton.Icon"
        android:layout_width="match_parent"
        android:layout_height="@dimen/bottom_sheet_item_height"
        android:layout_marginStart="@dimen/normal_margin"
        android:layout_marginLeft="@dimen/normal_margin"
        android:layout_marginEnd="@dimen/normal_margin"
        android:layout_marginRight="@dimen/normal_margin"
        android:nextFocusDown="@id/create_from_qrcode"
        android:nextFocusForward="@id/create_from_qrcode"
        android:text="@string/create_from_file"
        android:textAlignment="viewStart"
        android:textColor="?attr/colorOnSurface"
        app:icon="@drawable/ic_action_open_white"
        app:iconPadding="@dimen/bottom_sheet_icon_padding"
        app:iconTint="?attr/colorSecondary"
        app:layout_constraintBottom_toTopOf="@+id/create_from_qrcode"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="parent"
        app:rippleColor="?attr/colorSecondary" />

    <com.google.android.material.button.MaterialButton
        android:id="@+id/create_from_qrcode"
        style="@style/Widget.MaterialComponents.Button.TextButton.Icon"
        android:layout_width="match_parent"
        android:layout_height="@dimen/bottom_sheet_item_height"
        android:layout_marginStart="@dimen/normal_margin"
        android:layout_marginLeft="@dimen/normal_margin"
        android:layout_marginEnd="@dimen/normal_margin"
        android:layout_marginRight="@dimen/normal_margin"
        android:nextFocusUp="@id/create_from_file"
        android:nextFocusDown="@id/create_empty"
        android:nextFocusForward="@id/create_empty"
        android:text="@string/create_from_qr_code"
        android:textAlignment="viewStart"
        android:textColor="?attr/colorOnSurface"
        app:icon="@drawable/ic_action_scan_qr_code_white"
        app:iconPadding="@dimen/bottom_sheet_icon_padding"
        app:iconTint="?attr/colorSecondary"
        app:layout_constraintBottom_toBottomOf="@+id/create_empty"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/create_from_file"
        app:rippleColor="?attr/colorSecondary" />

    <com.google.android.material.button.MaterialButton
        android:id="@+id/create_empty"
        style="@style/Widget.MaterialComponents.Button.TextButton.Icon"
        android:layout_width="match_parent"
        android:layout_height="@dimen/bottom_sheet_item_height"
        android:layout_marginStart="@dimen/normal_margin"
        android:layout_marginLeft="@dimen/normal_margin"
        android:layout_marginEnd="@dimen/normal_margin"
        android:layout_marginRight="@dimen/normal_margin"
        android:nextFocusUp="@id/create_from_qrcode"
        android:text="@string/create_empty"
        android:textAlignment="viewStart"
        android:textColor="?attr/colorOnSurface"
        app:icon="@drawable/ic_action_edit"
        app:iconPadding="@dimen/bottom_sheet_icon_padding"
        app:iconTint="?attr/colorSecondary"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/create_from_qrcode"
        app:rippleColor="?attr/colorSecondary" />

</androidx.constraintlayout.widget.ConstraintLayout>