fragment_about.xml 5.69 KB
Newer Older
1
2
3
4
<?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/. -->
5
6
7
8
9
10
11
12
13
14

<androidx.core.widget.NestedScrollView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/about_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fillViewport="true"
    tools:context="org.mozilla.fenix.settings.about.AboutFragment">
15

16
    <androidx.constraintlayout.widget.ConstraintLayout
17
18
        android:layout_width="match_parent"
        android:layout_height="wrap_content">
19

20
        <ImageView
21
            android:id="@+id/wordmark"
22
23
            android:layout_width="75dp"
            android:layout_height="75dp"
24
            android:layout_marginTop="@dimen/about_header_icon_margin_top"
25
            android:layout_marginEnd="130dp"
26
27
            android:contentDescription="@string/app_name"
            android:importantForAccessibility="no"
28
            app:srcCompat="@mipmap/ic_launcher"
29
            app:layout_constraintStart_toStartOf="parent"
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

        <TextView
            android:id="@+id/app_name"
            style="@style/Header24TextStyle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/about_header_icon_margin_top"
            android:gravity="center_vertical"
            android:width="130dp"
            android:height="70dp"
            android:lines="2"
            android:text="@string/app_name"
            android:textSize="20sp"
            android:lineSpacingMultiplier="1.2"
46
            app:layout_constraintTop_toTopOf="parent"
47
            app:layout_constraintStart_toEndOf="@id/wordmark" />
48

49
        <TextView
50
51
52
53
54
55
56
57
58
59
60
61
            android:id="@+id/about_content"
            style="@style/Header16TextStyle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/about_header_title_margin_top"
            android:paddingStart="@dimen/about_header_title_padding_start_end"
            android:paddingEnd="@dimen/about_header_title_padding_start_end"
            android:textAlignment="center"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/wordmark"
            app:layout_constraintWidth_percent="0.8"
62
            tools:text="@string/tor_about_content" />
63

64
        <TextView
65
66
67
68
69
70
71
72
73
74
75
            android:id="@+id/about_text"
            style="@style/AboutHeaderContentText"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/about_header_build_info_margin_top"
            android:textAlignment="center"
            android:textIsSelectable="true"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/about_content"
            app:layout_constraintWidth_percent="0.8"
76
            tools:text="1.0.x (Build #x)\nAC: 1.0.0\nGV: 69.x-x\nAS: 1.0.0" />
77
78

        <TextView
79
80
81
82
            android:id="@+id/build_date"
            style="@style/AboutHeaderContentText"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
83
84
            android:paddingTop="@dimen/about_header_build_date_padding_top"
            android:paddingBottom="@dimen/about_header_build_date_padding_bottom"
85
86
87
88
89
90
91
            android:textAlignment="center"
            android:textIsSelectable="true"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/about_text"
            app:layout_constraintWidth_percent="0.8"
            tools:text="Monday 1/2 @ 5:00 PM" />
92

93
94
95
96
97
98
99
100
        <Space
            android:id="@+id/space"
            android:layout_width="0dp"
            android:layout_height="0dp"
            app:layout_constraintBottom_toTopOf="@+id/divider"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/build_date"/>
101

102
103
104
105
106
107
108
109
110
111
112
113
114
115
        <View
            android:id="@+id/divider"
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:layout_marginTop="@dimen/about_list_margin_top"
            android:background="?android:attr/listDivider"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/space"
            app:layout_constraintBottom_toTopOf="@+id/about_list"/>

        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/about_list"
            android:layout_width="0dp"
116
            android:layout_height="wrap_content"
117
118
119
120
            android:nestedScrollingEnabled="false"
            app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
121
            app:layout_constraintStart_toStartOf="parent"
122
123
            app:layout_constraintTop_toBottomOf="@+id/divider"
            tools:listitem="@layout/about_list_item" />
124

125
    </androidx.constraintlayout.widget.ConstraintLayout>
126

127
</androidx.core.widget.NestedScrollView>