1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
3 - License, v. 2.0. If a copy of the MPL was not distributed with this
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
6 <androidx.constraintlayout.widget.ConstraintLayout
7 xmlns:android="http://schemas.android.com/apk/res/android"
8 xmlns:app="http://schemas.android.com/apk/res-auto"
9 xmlns:tools="http://schemas.android.com/tools"
10 android:id="@+id/connection_details_view"
11 android:layout_width="match_parent"
12 android:layout_height="wrap_content"
13 android:orientation="horizontal"
14 android:padding="16dp">
17 android:id="@+id/details_back"
18 android:layout_width="40dp"
19 android:layout_height="40dp"
20 android:contentDescription="@string/go_back"
21 android:paddingStart="8dp"
22 android:paddingTop="8dp"
23 android:paddingEnd="8dp"
24 android:paddingBottom="8dp"
25 android:scaleType="center"
26 app:layout_constraintStart_toStartOf="parent"
27 app:layout_constraintTop_toTopOf="parent"
28 app:srcCompat="@drawable/mozac_ic_back_24" />
31 android:id="@+id/site_favicon"
32 android:layout_width="40dp"
33 android:layout_height="40dp"
34 android:layout_marginStart="12dp"
35 android:importantForAccessibility="no"
36 android:paddingStart="8dp"
37 android:paddingTop="8dp"
38 android:paddingEnd="8dp"
39 android:paddingBottom="8dp"
40 app:layout_constraintStart_toEndOf="@id/details_back"
41 app:layout_constraintTop_toTopOf="@id/site_title"
42 app:layout_constraintBottom_toBottomOf="@id/site_title"
43 tools:src="@drawable/ic_favorite" />
45 <com.google.android.material.textview.MaterialTextView
46 android:id="@+id/site_title"
47 style="@style/PanelTitle"
48 android:layout_width="0dp"
49 android:layout_height="wrap_content"
50 android:layout_marginStart="8dp"
51 android:paddingTop="8dp"
52 android:paddingBottom="8dp"
53 app:layout_constraintBottom_toTopOf="@id/site_full_url"
54 app:layout_constraintEnd_toEndOf="parent"
55 app:layout_constraintStart_toEndOf="@id/site_favicon"
56 app:layout_constraintTop_toTopOf="parent"
57 tools:text="@tools:sample/lorem/random" />
59 <com.google.android.material.textview.MaterialTextView
60 android:id="@+id/site_full_url"
61 style="@style/PanelTitle"
62 android:layout_width="0dp"
63 android:layout_height="wrap_content"
64 android:layout_marginStart="4dp"
65 android:paddingTop="8dp"
66 android:paddingBottom="8dp"
67 app:layout_constraintBottom_toTopOf="@id/security_info"
68 app:layout_constraintEnd_toEndOf="parent"
69 app:layout_constraintStart_toStartOf="@id/site_favicon"
70 app:layout_constraintTop_toBottomOf="@id/site_title"
71 tools:text="url.com" />
73 <com.google.android.material.textview.MaterialTextView
74 android:id="@+id/security_info"
75 style="@style/PanelTitle"
76 android:layout_width="0dp"
77 android:layout_height="wrap_content"
78 android:drawablePadding="8dp"
79 android:gravity="center_vertical"
80 android:paddingTop="8dp"
81 android:paddingBottom="8dp"
82 app:drawableStartCompat="@drawable/mozac_ic_lock_24"
83 app:layout_constraintBottom_toBottomOf="parent"
84 app:layout_constraintEnd_toEndOf="parent"
85 app:layout_constraintStart_toStartOf="@id/site_favicon"
86 app:layout_constraintTop_toBottomOf="@id/site_full_url"
87 tools:text="@string/secure_connection" />
89 </androidx.constraintlayout.widget.ConstraintLayout>