tor-browser

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

exception_item.xml (2841B)


      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 <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_marginTop="4dp"
     11    android:layout_marginBottom="4dp"
     12    android:clickable="true"
     13    android:focusable="true">
     14 
     15    <ImageView
     16        android:id="@+id/favicon_image"
     17        android:layout_width="24dp"
     18        android:layout_height="24dp"
     19        android:layout_marginStart="16dp"
     20        android:adjustViewBounds="true"
     21        android:importantForAccessibility="no"
     22        android:scaleType="fitCenter"
     23        app:layout_constraintBottom_toBottomOf="parent"
     24        app:layout_constraintDimensionRatio="1:1"
     25        app:layout_constraintStart_toStartOf="parent"
     26        app:layout_constraintTop_toTopOf="parent" />
     27 
     28    <TextView
     29        android:id="@+id/webAddressView"
     30        android:layout_width="0dp"
     31        android:layout_height="wrap_content"
     32        android:layout_marginEnd="12dp"
     33        android:layout_weight="1"
     34        android:ellipsize="middle"
     35        android:gravity="center_vertical"
     36        android:minHeight="?android:attr/listPreferredItemHeightSmall"
     37        android:orientation="vertical"
     38        android:paddingStart="?android:attr/listPreferredItemPaddingStart"
     39        android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
     40        android:singleLine="true"
     41        android:textAppearance="?android:attr/textAppearanceListItem"
     42        android:textColor="?attr/textPrimary"
     43        app:layout_constraintBottom_toBottomOf="parent"
     44        app:layout_constraintEnd_toStartOf="@+id/delete_exception"
     45        app:layout_constraintStart_toEndOf="@+id/favicon_image"
     46        app:layout_constraintTop_toTopOf="parent"
     47        tools:text="mozilla.org" />
     48 
     49    <ImageButton
     50        android:id="@+id/delete_exception"
     51        android:layout_width="@dimen/component_tp_exceptions_icon_size"
     52        android:layout_height="@dimen/component_tp_exceptions_icon_size"
     53        android:layout_marginStart="8dp"
     54        android:layout_marginEnd="16dp"
     55        android:background="?android:attr/selectableItemBackgroundBorderless"
     56        app:srcCompat="@drawable/ic_close"
     57        android:contentDescription="@string/history_delete_item"
     58        app:layout_constraintBottom_toBottomOf="parent"
     59        app:layout_constraintEnd_toEndOf="parent"
     60        app:layout_constraintTop_toTopOf="parent" />
     61 </androidx.constraintlayout.widget.ConstraintLayout>