tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

item_session.xml (2053B)


      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/. -->
      5 
      6 <androidx.constraintlayout.widget.ConstraintLayout
      7    android:id="@+id/session_item"
      8    xmlns:android="http://schemas.android.com/apk/res/android"
      9    xmlns:app="http://schemas.android.com/apk/res-auto"
     10    xmlns:tools="http://schemas.android.com/tools"
     11    android:layout_width="match_parent"
     12    android:layout_height="56dp"
     13    android:background="@drawable/background_gradient">
     14 
     15    <TextView
     16        android:id="@+id/session_title"
     17        android:layout_width="0dp"
     18        android:layout_height="56dp"
     19        android:drawablePadding="16dp"
     20        android:ellipsize="end"
     21        android:gravity="start|center_vertical"
     22        android:lines="1"
     23        android:paddingStart="16dp"
     24        android:paddingEnd="16dp"
     25        android:textColor="@color/primaryText"
     26        android:textSize="14sp"
     27        app:drawableStartCompat="@drawable/mozac_ic_link_24"
     28        app:layout_constraintBottom_toBottomOf="parent"
     29        app:layout_constraintEnd_toStartOf="@id/close_button"
     30        app:layout_constraintStart_toStartOf="parent"
     31        app:layout_constraintTop_toTopOf="parent"
     32        tools:text="www.mozilla.org/en-US/firefox/browsers/mobile/focus/" />
     33 
     34    <ImageView
     35        android:id="@+id/close_button"
     36        android:layout_width="48dp"
     37        android:layout_height="48dp"
     38        android:layout_alignParentEnd="true"
     39        android:layout_centerVertical="true"
     40        android:contentDescription="@string/close_tab"
     41        android:scaleType="center"
     42        app:srcCompat="@drawable/mozac_ic_cross_24"
     43        app:layout_constraintBottom_toBottomOf="parent"
     44        app:layout_constraintEnd_toEndOf="parent"
     45        app:layout_constraintStart_toEndOf="@id/session_title"
     46        app:layout_constraintTop_toTopOf="parent" />
     47 </androidx.constraintlayout.widget.ConstraintLayout>