tor-browser

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

switch_with_description.xml (2759B)


      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="match_parent">
     10 
     11    <TextView
     12        android:layout_marginTop="4dp"
     13        android:id="@+id/switch_with_description_title"
     14        android:layout_width="0dp"
     15        android:layout_height="wrap_content"
     16        android:layout_marginStart="48dp"
     17        android:layout_marginEnd="64dp"
     18        android:clickable="false"
     19        android:focusable="false"
     20        android:importantForAccessibility="no"
     21        android:textAppearance="@style/ListItemTextStyle"
     22        android:textSize="16sp"
     23        app:layout_constraintBottom_toTopOf="@id/switch_with_description_description"
     24        app:layout_constraintEnd_toEndOf="parent"
     25        app:layout_constraintHorizontal_bias="0"
     26        app:layout_constraintStart_toStartOf="parent"
     27        app:layout_constraintTop_toTopOf="parent"
     28        app:layout_constraintVertical_chainStyle="packed"
     29        tools:text="@tools:sample/lorem" />
     30 
     31    <TextView
     32        android:id="@+id/switch_with_description_description"
     33        android:layout_width="0dp"
     34        android:layout_height="wrap_content"
     35        android:clickable="false"
     36        android:focusable="false"
     37        android:importantForAccessibility="no"
     38        android:textColor="?attr/textSecondary"
     39        android:layout_marginBottom="4dp"
     40        app:layout_constraintBottom_toBottomOf="parent"
     41        app:layout_constraintEnd_toEndOf="@id/switch_with_description_title"
     42        app:layout_constraintHorizontal_bias="0.5"
     43        app:layout_constraintStart_toStartOf="@id/switch_with_description_title"
     44        app:layout_constraintTop_toBottomOf="@id/switch_with_description_title"
     45        app:layout_constraintVertical_chainStyle="packed"
     46        tools:text="@tools:sample/lorem" />
     47 
     48    <androidx.appcompat.widget.SwitchCompat
     49        android:id="@+id/switch_widget"
     50        style="@style/QuickSettingsText.Icon"
     51        android:minHeight="@dimen/tracking_protection_item_height"
     52        android:layout_width="match_parent"
     53        android:layout_height="match_parent"
     54        app:layout_constraintBottom_toBottomOf="@id/switch_with_description_description"
     55        app:layout_constraintEnd_toEndOf="parent"
     56        app:layout_constraintTop_toTopOf="parent" />
     57 </androidx.constraintlayout.widget.ConstraintLayout>