blob: 9f582a5a28114c69f5ab44ab300c49ecfefa01b0 [file] [log] [blame]
Sébastien Blinab53ada2019-01-02 17:23:00 -05001<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2016-2019 Savoir-faire Linux Inc.
Adrien Béraude36c2dc2016-02-18 11:22:10 -05002
3Author: Adrien Beraud <adrien.beraud@savoirfairelinux.com>
Alexandre Lisionb5823032016-04-25 18:12:14 -04004 Alexandre Lision <alexandre.lision@savoirfairelinux.com>
Adrien Béraude36c2dc2016-02-18 11:22:10 -05005
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 3 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program. If not, see <http://www.gnu.org/licenses/>.
18-->
Alexandre Lisionb5823032016-04-25 18:12:14 -040019
Adrien Béraude1826782019-09-29 13:52:25 -040020<cx.ring.views.BoundedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
Adrien Bérauda2d496d2018-12-13 16:55:05 -050021 xmlns:app="http://schemas.android.com/apk/res-auto"
Adrien Béraude1826782019-09-29 13:52:25 -040022 xmlns:tools="http://schemas.android.com/tools"
alision5de91782013-07-10 10:47:30 -040023 android:layout_width="match_parent"
Adrien Béraude1826782019-09-29 13:52:25 -040024 android:layout_height="match_parent"
25 android:layout_centerHorizontal="true"
26 android:layout_gravity="center_horizontal"
27 app:bounded_width="600dp">
alision5de91782013-07-10 10:47:30 -040028
Aline Bonnet1c0e6732017-04-26 14:39:26 -040029 <LinearLayout
alision5de91782013-07-10 10:47:30 -040030 android:layout_width="match_parent"
31 android:layout_height="wrap_content"
Alexandre Lisionb5823032016-04-25 18:12:14 -040032 android:orientation="vertical"
Adrien Béraude1826782019-09-29 13:52:25 -040033 android:paddingTop="16dp"
34 android:paddingBottom="16dp">
alision5de91782013-07-10 10:47:30 -040035
Aline Bonnet072f33b2016-11-03 10:30:29 -040036 <ImageView
Adrien Béraud318d1be2018-12-14 19:18:12 -050037 android:id="@+id/logo"
Aline Bonnet072f33b2016-11-03 10:30:29 -040038 android:layout_width="wrap_content"
39 android:layout_height="80dp"
Aline Bonnet072f33b2016-11-03 10:30:29 -040040 android:layout_marginTop="5dp"
41 android:contentDescription="@string/app_name"
Adrien Bérauda2d496d2018-12-13 16:55:05 -050042 android:scaleType="fitCenter"
Adrien Béraude1826782019-09-29 13:52:25 -040043 android:layout_gravity="center_horizontal"
44 app:srcCompat="@drawable/ic_jami" />
Aline Bonnet072f33b2016-11-03 10:30:29 -040045
Aline Bonnet1c0e6732017-04-26 14:39:26 -040046 <TextView
47 android:layout_width="match_parent"
48 android:layout_height="wrap_content"
Adrien Béraude1826782019-09-29 13:52:25 -040049 android:layout_marginStart="72dp"
50 android:layout_marginEnd="16dp"
51 android:layout_marginTop="16dp"
52 android:layout_marginBottom="16dp"
53 android:text="@string/description" />
Aline Bonnet1c0e6732017-04-26 14:39:26 -040054
Adrien Béraude1826782019-09-29 13:52:25 -040055 <com.google.android.material.button.MaterialButton
56 android:id="@+id/credits"
57 android:layout_width="wrap_content"
58 android:layout_height="wrap_content"
59 android:layout_gravity="center_horizontal"
60 android:text="@string/credits"
61 android:layout_marginBottom="16dp" />
62
63 <RelativeLayout
alision5de91782013-07-10 10:47:30 -040064 android:layout_width="match_parent"
65 android:layout_height="wrap_content"
Adrien Béraude1826782019-09-29 13:52:25 -040066 android:padding="@dimen/padding_large">
alision5de91782013-07-10 10:47:30 -040067
Adrien Béraude1826782019-09-29 13:52:25 -040068 <ImageView
69 android:id="@+id/version_image"
Adrien Béraude36c2dc2016-02-18 11:22:10 -050070 android:layout_width="wrap_content"
Alexandre Lisionf02190d2013-12-12 17:26:12 -050071 android:layout_height="wrap_content"
Adrien Béraude1826782019-09-29 13:52:25 -040072 android:layout_alignParentStart="true"
73 android:layout_centerVertical="true"
74 android:layout_gravity="start"
75 android:contentDescription="@string/version_section"
76 app:srcCompat="@drawable/ic_ring_logo_white"
77 android:tint="@color/colorPrimary"
78 android:layout_marginEnd="32dp"/>
79
80 <TextView
81 android:id="@+id/version_title"
82 style="@style/ListPrimary"
Adrien Béraud91f88742019-09-09 00:46:46 -040083 android:textColor="@color/textColorAccent"
Adrien Béraude1826782019-09-29 13:52:25 -040084 android:layout_width="wrap_content"
85 android:layout_height="wrap_content"
86 android:maxLines="3"
87 android:singleLine="false"
88 android:text="@string/version_section"
89 android:layout_toEndOf="@id/version_image"
90 android:layout_marginEnd="16dp" />
Alexandre Lisionf02190d2013-12-12 17:26:12 -050091
92 <TextView
Thibault Wittemberg37aec062016-11-07 17:11:47 -050093 android:id="@+id/release"
Adrien Béraudca337972016-03-15 18:25:15 -040094 android:layout_width="wrap_content"
95 android:layout_height="wrap_content"
Adrien Béraude1826782019-09-29 13:52:25 -040096 android:layout_toEndOf="@id/version_image"
97 android:layout_marginEnd="16dp"
98 android:layout_below="@id/version_title"
99 tools:text="2.0"/>
Alexandre Lisionb5823032016-04-25 18:12:14 -0400100
Adrien Béraude1826782019-09-29 13:52:25 -0400101 </RelativeLayout>
Alexandre Lisionb5823032016-04-25 18:12:14 -0400102
Adrien Béraude1826782019-09-29 13:52:25 -0400103 <RelativeLayout
Thibault Wittemberg37aec062016-11-07 17:11:47 -0500104 android:id="@+id/contribute_container"
Alexandre Lisionb5823032016-04-25 18:12:14 -0400105 android:layout_width="match_parent"
106 android:layout_height="wrap_content"
Adrien Béraude1826782019-09-29 13:52:25 -0400107 android:padding="@dimen/padding_large"
Thibault Wittemberg37aec062016-11-07 17:11:47 -0500108 android:background="?attr/selectableItemBackground"
109 android:clickable="true"
Pierre Duchemina5529292017-12-18 17:25:54 -0500110 android:focusable="true"
Adrien Béraude1826782019-09-29 13:52:25 -0400111 android:gravity="center_vertical">
112
113 <ImageView
114 android:id="@+id/contribute_image"
115 android:layout_width="wrap_content"
116 android:layout_height="wrap_content"
117 android:layout_alignParentStart="true"
118 android:layout_centerVertical="true"
119 android:layout_gravity="start"
120 android:contentDescription="@string/contribute_section"
121 app:srcCompat="@drawable/baseline_person_add_24"
122 android:layout_marginEnd="32dp"/>
Alexandre Lisionb5823032016-04-25 18:12:14 -0400123
124 <TextView
Adrien Béraude1826782019-09-29 13:52:25 -0400125 android:id="@+id/contribute_title"
Alexandre Lisionb5823032016-04-25 18:12:14 -0400126 android:layout_width="wrap_content"
127 android:layout_height="wrap_content"
128 android:text="@string/contribute_section"
Adrien Béraude1826782019-09-29 13:52:25 -0400129 style="@style/ListPrimary"
Adrien Béraud91f88742019-09-09 00:46:46 -0400130 android:textColor="@color/textColorAccent"
Adrien Béraude1826782019-09-29 13:52:25 -0400131 android:layout_toEndOf="@id/contribute_image" />
Adrien Béraudca337972016-03-15 18:25:15 -0400132
133 <TextView
Alexandre Lisionf02190d2013-12-12 17:26:12 -0500134 android:id="@+id/web_site"
Adrien Béraude36c2dc2016-02-18 11:22:10 -0500135 android:layout_width="wrap_content"
Alexandre Lisionf02190d2013-12-12 17:26:12 -0500136 android:layout_height="wrap_content"
Adrien Bérauda2d496d2018-12-13 16:55:05 -0500137 android:text="@string/app_website_contribute"
Adrien Béraude1826782019-09-29 13:52:25 -0400138 android:textAppearance="?android:attr/textAppearanceSmall"
139 android:layout_toEndOf="@id/contribute_image"
140 android:layout_below="@id/contribute_title" />
Alexandre Lisionb5823032016-04-25 18:12:14 -0400141
Adrien Béraude1826782019-09-29 13:52:25 -0400142 </RelativeLayout>
Alexandre Lisionb5823032016-04-25 18:12:14 -0400143
Adrien Béraude1826782019-09-29 13:52:25 -0400144 <RelativeLayout
Alexandre Lisionb5823032016-04-25 18:12:14 -0400145 android:layout_width="match_parent"
146 android:layout_height="wrap_content"
Adrien Béraude1826782019-09-29 13:52:25 -0400147 android:padding="@dimen/padding_large">
148
149 <ImageView
150 android:id="@+id/copyright_image"
151 android:layout_width="wrap_content"
152 android:layout_height="wrap_content"
153 android:layout_alignParentStart="true"
154 android:layout_centerVertical="true"
155 android:layout_gravity="start"
156 android:contentDescription="@string/copyright_section"
157 app:srcCompat="@drawable/baseline_copyright_24"
158 android:layout_marginEnd="32dp"/>
Alexandre Lisionb5823032016-04-25 18:12:14 -0400159
160 <TextView
Adrien Béraude1826782019-09-29 13:52:25 -0400161 android:id="@+id/copyright_title"
Alexandre Lisionb5823032016-04-25 18:12:14 -0400162 android:layout_width="wrap_content"
163 android:layout_height="wrap_content"
164 android:text="@string/copyright_section"
Adrien Béraude1826782019-09-29 13:52:25 -0400165 style="@style/ListPrimary"
Adrien Béraud91f88742019-09-09 00:46:46 -0400166 android:textColor="@color/textColorAccent"
Adrien Béraude1826782019-09-29 13:52:25 -0400167 android:layout_toEndOf="@id/copyright_image" />
Alexandre Lisionf02190d2013-12-12 17:26:12 -0500168
169 <TextView
Adrien Béraude36c2dc2016-02-18 11:22:10 -0500170 android:id="@+id/copyright"
Alexandre Lisionb5823032016-04-25 18:12:14 -0400171 android:layout_width="wrap_content"
Adrien Béraude36c2dc2016-02-18 11:22:10 -0500172 android:layout_height="wrap_content"
Adrien Bérauda2d496d2018-12-13 16:55:05 -0500173 android:text="@string/copyright"
Adrien Béraude1826782019-09-29 13:52:25 -0400174 android:textAppearance="?android:attr/textAppearanceSmall"
175 android:layout_toEndOf="@id/copyright_image"
176 android:layout_below="@id/copyright_title"/>
Adrien Béraude36c2dc2016-02-18 11:22:10 -0500177
Adrien Béraude1826782019-09-29 13:52:25 -0400178 </RelativeLayout>
Alexandre Lisionb5823032016-04-25 18:12:14 -0400179
Adrien Béraude1826782019-09-29 13:52:25 -0400180
181 <RelativeLayout
Aline Bonnet9dc85932017-01-06 12:11:24 -0500182 android:id="@+id/license_container"
Alexandre Lisionb5823032016-04-25 18:12:14 -0400183 android:layout_width="match_parent"
184 android:layout_height="wrap_content"
Adrien Béraude1826782019-09-29 13:52:25 -0400185 android:padding="@dimen/padding_large"
Thibault Wittemberg37aec062016-11-07 17:11:47 -0500186 android:background="?attr/selectableItemBackground"
187 android:clickable="true"
Adrien Béraude1826782019-09-29 13:52:25 -0400188 android:focusable="true">
189
190 <ImageView
191 android:id="@+id/license_image"
192 android:layout_width="wrap_content"
193 android:layout_height="wrap_content"
194 android:layout_alignParentStart="true"
195 android:layout_centerVertical="true"
196 android:layout_gravity="start"
197 android:contentDescription="@string/copyright_section"
198 app:srcCompat="@drawable/baseline_insert_drive_file_24"
199 android:layout_marginEnd="32dp"/>
Alexandre Lisionb5823032016-04-25 18:12:14 -0400200
201 <TextView
Adrien Béraude1826782019-09-29 13:52:25 -0400202 android:id="@+id/license_title"
Alexandre Lisionb5823032016-04-25 18:12:14 -0400203 android:layout_width="wrap_content"
204 android:layout_height="wrap_content"
Aline Bonnet9dc85932017-01-06 12:11:24 -0500205 android:text="@string/section_license"
Adrien Béraude1826782019-09-29 13:52:25 -0400206 style="@style/ListPrimary"
Adrien Béraud91f88742019-09-09 00:46:46 -0400207 android:textColor="@color/textColorAccent"
Adrien Béraude1826782019-09-29 13:52:25 -0400208 android:layout_toEndOf="@id/license_image" />
Alexandre Lisionb5823032016-04-25 18:12:14 -0400209
Adrien Béraude36c2dc2016-02-18 11:22:10 -0500210 <TextView
Aline Bonnet9dc85932017-01-06 12:11:24 -0500211 android:id="@+id/license"
Alexandre Lisionf02190d2013-12-12 17:26:12 -0500212 android:layout_width="match_parent"
213 android:layout_height="wrap_content"
Adrien Bérauda2d496d2018-12-13 16:55:05 -0500214 android:singleLine="false"
Adrien Béraude1826782019-09-29 13:52:25 -0400215 android:text="@string/license"
216 android:layout_toEndOf="@id/license_image"
217 android:layout_below="@id/license_title"/>
Alexandre Lisionb5823032016-04-25 18:12:14 -0400218
Adrien Béraude1826782019-09-29 13:52:25 -0400219 </RelativeLayout>
Adrien Béraud9754ae62015-06-23 23:40:34 -0400220
Adrien Béraude1826782019-09-29 13:52:25 -0400221 <RelativeLayout
Alexandre Lisionb5823032016-04-25 18:12:14 -0400222 android:id="@+id/email_report_container"
223 android:layout_width="match_parent"
224 android:layout_height="wrap_content"
Adrien Béraude1826782019-09-29 13:52:25 -0400225 android:padding="@dimen/padding_large"
Alexandre Lisionb5823032016-04-25 18:12:14 -0400226 android:background="?attr/selectableItemBackground"
Thibault Wittemberg37aec062016-11-07 17:11:47 -0500227 android:clickable="true"
Adrien Béraude1826782019-09-29 13:52:25 -0400228 android:focusable="true">
229
230 <ImageView
231 android:id="@+id/feedback_image"
232 android:layout_width="wrap_content"
233 android:layout_height="wrap_content"
234 android:layout_alignParentStart="true"
235 android:layout_centerVertical="true"
236 android:layout_gravity="start"
237 android:contentDescription="@string/copyright_section"
238 app:srcCompat="@drawable/baseline_feedback_24"
239 android:layout_marginEnd="32dp"/>
Alexandre Lisionb5823032016-04-25 18:12:14 -0400240
241 <TextView
Adrien Béraude1826782019-09-29 13:52:25 -0400242 android:id="@+id/feedback_title"
Alexandre Lisionb5823032016-04-25 18:12:14 -0400243 android:layout_width="wrap_content"
244 android:layout_height="wrap_content"
245 android:clickable="false"
246 android:text="@string/feedback_section"
Adrien Béraude1826782019-09-29 13:52:25 -0400247 style="@style/ListPrimary"
Adrien Béraud91f88742019-09-09 00:46:46 -0400248 android:textColor="@color/textColorAccent"
Adrien Béraude1826782019-09-29 13:52:25 -0400249 android:layout_toEndOf="@id/feedback_image" />
Alexandre Lisionb5823032016-04-25 18:12:14 -0400250
251 <TextView
252 android:id="@+id/email_report"
253 android:layout_width="wrap_content"
254 android:layout_height="wrap_content"
Adrien Bérauda2d496d2018-12-13 16:55:05 -0500255 android:clickable="false"
Adrien Béraude1826782019-09-29 13:52:25 -0400256 android:text="@string/report"
257 android:layout_toEndOf="@id/feedback_image"
258 android:layout_below="@id/feedback_title" />
Alexandre Lisionb5823032016-04-25 18:12:14 -0400259
Adrien Béraude1826782019-09-29 13:52:25 -0400260 </RelativeLayout>
Alexandre Lisionb5823032016-04-25 18:12:14 -0400261
Alexandre Lisionb5823032016-04-25 18:12:14 -0400262 <LinearLayout
263 android:layout_width="match_parent"
264 android:layout_height="wrap_content"
Adrien Béraude1826782019-09-29 13:52:25 -0400265 android:padding="@dimen/padding_large"
266 android:layout_marginStart="56dp"
Alexandre Lisionb5823032016-04-25 18:12:14 -0400267 android:gravity="center_vertical"
268 android:orientation="vertical">
269
270 <TextView
271 android:id="@+id/developped_by"
272 android:layout_width="wrap_content"
273 android:layout_height="wrap_content"
Adrien Bérauda2d496d2018-12-13 16:55:05 -0500274 android:text="@string/sponsor_section"
Adrien Béraud91f88742019-09-09 00:46:46 -0400275 android:textColor="@color/textColorAccent"
Alexandre Lisionb5823032016-04-25 18:12:14 -0400276 android:textSize="15sp" />
277
278 <ImageView
Adrien Béraud318d1be2018-12-14 19:18:12 -0500279 android:id="@+id/sfl_logo"
Adrien Béraude1826782019-09-29 13:52:25 -0400280 android:layout_width="wrap_content"
281 android:layout_height="56dp"
282 android:layout_marginTop="16dp"
Alexandre Lisionb5823032016-04-25 18:12:14 -0400283 android:contentDescription="@string/app_author"
Adrien Béraude1826782019-09-29 13:52:25 -0400284 android:scaleType="fitStart"
Adrien Bérauda2d496d2018-12-13 16:55:05 -0500285 android:src="@drawable/logo_sfl_coul_rgb" />
Alexandre Lisionb5823032016-04-25 18:12:14 -0400286
287 </LinearLayout>
Adrien Béraud9754ae62015-06-23 23:40:34 -0400288
Alexandre Lisionf02190d2013-12-12 17:26:12 -0500289 </LinearLayout>
Adrien Béraude1826782019-09-29 13:52:25 -0400290</cx.ring.views.BoundedScrollView>
Aline Bonnet1c0e6732017-04-26 14:39:26 -0400291
292