tor_feedback_survey.xml 3.35 KB
Newer Older
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
<?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"
    android:id="@+id/feedback_survey_wrapper"
    style="@style/OnboardingCardLightWithPadding"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:clipChildren="false"
    android:clipToPadding="false">

    <LinearLayout
        android:id="@+id/feedback_survey_header_wrapper"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        android:importantForAccessibility="no">

        <ImageView
            android:id="@+id/tor_feedback_icon"
            android:layout_width="wrap_content"
            android:layout_height="32dp"
            android:layout_marginEnd="10dp"
            android:adjustViewBounds="true"
            android:clickable="false"
            android:focusable="false"
            android:importantForAccessibility="no"
            app:srcCompat="@drawable/tor_survey_icon_3x"/>

        <TextView
            android:id="@+id/feedback_survey_header"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:ellipsize="none"
            android:lineSpacingExtra="6dp"
            android:paddingHorizontal="4dp"
            android:paddingTop="4dp"
            android:scrollHorizontally="false"
            android:textAlignment="viewStart"
            android:textColor="?primaryText"
            android:textSize="20sp"
            android:text="Do you use Snowflake?" />
    </LinearLayout>

    <TextView
        android:id="@+id/feedback_survey_description"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:ellipsize="none"
        android:lineSpacingExtra="6dp"
        android:paddingHorizontal="4dp"
        android:paddingTop="4dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/feedback_survey_header_wrapper"
        android:scrollHorizontally="false"
        android:textAlignment="viewStart"
        android:textColor="?primaryText"
        android:textSize="16sp"
        android:text="Snowflake is a pluggable transport available in Tor Browser. Help us improve it by completing this short survey about your browsing experience:" />

    <Button
        style="@style/PositiveButton"
        android:id="@+id/feedback_survey_launch_button"
        android:text="Launch the Survey"
        android:layout_marginTop="16dp"
        android:textSize="18dp"
        android:textColor="@android:color/black"
        android:background="@drawable/feedback_survey_padded_background"
        android:fontFamily="Roboto-Medium"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/feedback_survey_description" />

</androidx.constraintlayout.widget.ConstraintLayout>