tor-browser

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

item_app.xml (1603B)


      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 <!-- ignore=Overdraw: we're using a (most-of-the-time) transparent background for the touch-ripple
      7     effect. That background is item specific (this layout is used as a RecyclerView item), so
      8     we can't move the background up to the next layer, hence we need to ignore that lint warning. -->
      9 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     10    xmlns:tools="http://schemas.android.com/tools"
     11    tools:ignore="Overdraw"
     12    android:orientation="horizontal"
     13    android:layout_width="match_parent"
     14    android:layout_height="48dp"
     15    android:background="@drawable/background_open_in_item"
     16    android:focusable="true"
     17    android:clickable="true"
     18    android:paddingStart="16dp"
     19    android:paddingEnd="16dp">
     20 
     21    <ImageView
     22        android:id="@+id/icon"
     23        android:layout_width="24dp"
     24        android:layout_height="24dp"
     25        android:importantForAccessibility="no"
     26        android:layout_gravity="center_vertical"/>
     27 
     28    <TextView
     29        android:id="@+id/title"
     30        android:layout_width="0dp"
     31        android:layout_height="48dp"
     32        android:layout_weight="1"
     33        android:layout_marginStart="32dp"
     34        android:textColor="@color/primaryText"
     35        android:textSize="16sp"
     36        android:lines="1"
     37        android:ellipsize="end"
     38        android:gravity="center_vertical" />
     39 
     40 </LinearLayout>