Revision control

Copy as Markdown

<?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
android:id="@+id/session_item"
android:layout_width="match_parent"
android:layout_height="56dp"
android:background="@drawable/background_gradient">
<TextView
android:id="@+id/session_title"
android:layout_width="0dp"
android:layout_height="56dp"
android:drawablePadding="16dp"
android:ellipsize="end"
android:gravity="start|center_vertical"
android:lines="1"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:textColor="@color/primaryText"
android:textSize="14sp"
app:drawableStartCompat="@drawable/ic_link"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/close_button"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="www.mozilla.org/en-US/firefox/browsers/mobile/focus/" />
<ImageView
android:id="@+id/close_button"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:contentDescription="@string/close_tab"
android:scaleType="center"
android:src="@drawable/mozac_ic_cross_24"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/session_title"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>