summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/rating_dialog.xml
blob: c8f3c980b9db31555dfe48c8291173e1391d1c72 (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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:clipToPadding="false"
    android:paddingBottom="32dp">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@drawable/bg_blue_gradient"
            android:orientation="horizontal"
            android:paddingVertical="32dp"
            android:paddingHorizontal="16dp">

            <ImageView
                android:layout_width="56dp"
                android:layout_height="56dp"
                android:layout_gravity="center_vertical"
                android:layout_marginLeft="8dp"
                android:layout_marginStart="8dp"
                android:importantForAccessibility="no"
                android:src="@drawable/logo_monochrome" />

            <TextView
                android:id="@+id/headerLabel"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_marginLeft="16dp"
                android:layout_marginStart="16dp"
                android:textColor="#fff"
                android:layout_weight="1" />

        </LinearLayout>

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="@string/rating_volunteers_label"
            android:layout_marginHorizontal="32dp"
            android:layout_marginVertical="16dp"
            android:textColor="?colorOnBackground" />

        <Button
            android:id="@+id/rateButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginHorizontal="32dp"
            android:text="@string/rating_rate"
            android:layout_gravity="right|end"
            style="@style/Widget.Material3.Button.OutlinedButton" />

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="@string/rating_contribute_label"
            android:layout_marginHorizontal="32dp"
            android:layout_marginVertical="16dp"
            android:textColor="?colorOnBackground" />

        <Button
            android:id="@+id/contibuteButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginHorizontal="32dp"
            android:text="@string/rating_contribute_button"
            android:layout_gravity="right|end"
            style="@style/Widget.Material3.Button.OutlinedButton" />

        <Button
            android:id="@+id/showLaterButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginHorizontal="32dp"
            android:layout_marginTop="8dp"
            android:text="@string/rating_later"
            android:layout_gravity="right|end"
            android:gravity="right|end"
            style="@style/Widget.Material3.Button.TextButton" />

        <Button
            android:id="@+id/neverAgainButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginHorizontal="32dp"
            android:text="@string/checkbox_do_not_show_again"
            android:layout_gravity="right|end"
            android:gravity="right|end"
            style="@style/Widget.Material3.Button.TextButton" />

    </LinearLayout>

</ScrollView>