[fenix] For https://github.com/mozilla-mobile/fenix/issues/20764 add screen for optin...
[gecko.git] / mobile / android / fenix / app / src / main / res / layout / study_item.xml
blob5cff29278817bb447be82537b75b1e89766cc20b
1 <?xml version="1.0" encoding="utf-8"?><!-- This Source Code Form is subject to the terms of the Mozilla Public
2    - License, v. 2.0. If a copy of the MPL was not distributed with this
3    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
6     xmlns:app="http://schemas.android.com/apk/res-auto"
7     xmlns:tools="http://schemas.android.com/tools"
8     android:layout_width="match_parent"
9     android:layout_height="wrap_content"
10     android:layout_marginBottom="8dp"
11     android:layout_marginStart="@dimen/top_bar_alignment_margin_start"
12     android:background="?android:attr/selectableItemBackground">
14     <TextView
15         android:id="@+id/studyTitle"
16         android:layout_width="0dp"
17         android:layout_height="wrap_content"
18         android:layout_weight="1"
19         android:ellipsize="end"
20         android:maxLines="1"
21         android:textColor="?primaryText"
22         android:textSize="16sp"
23         app:layout_constraintEnd_toEndOf="parent"
24         app:layout_constraintStart_toStartOf="parent"
25         app:layout_constraintTop_toTopOf="parent"
26         tools:text="HTTP3 on Firefox" />
28     <TextView
29         android:id="@+id/study_description"
30         android:layout_width="0dp"
31         android:layout_height="wrap_content"
32         android:textColor="?secondaryText"
33         android:textSize="12sp"
34         app:layout_constraintEnd_toStartOf="@id/remove_button"
35         app:layout_constraintStart_toStartOf="@id/studyTitle"
36         app:layout_constraintTop_toBottomOf="@id/studyTitle"
37         tools:text="HTTP3 is a new protocol that will improve web page load performance. This experiment should measure the performance of our implementation of the HTTP3 protocol." />
40     <com.google.android.material.button.MaterialButton
41         android:id="@+id/remove_button"
42         style="@style/DestructiveButton"
43         android:layout_width="wrap_content"
44         android:layout_height="wrap_content"
45         android:layout_alignParentEnd="true"
46         android:background="?attr/selectableItemBackgroundBorderless"
47         android:text="@string/studies_remove"
48         android:layout_marginStart="0dp"
49         android:layout_marginEnd="6dp"
50         app:layout_constraintEnd_toEndOf="parent"
51         app:layout_constraintTop_toBottomOf="@id/studyTitle"
52         app:tint="?android:attr/textColorPrimary" />
54 </androidx.constraintlayout.widget.ConstraintLayout>