tor-browser

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

preference_widget_radiobutton.xml (2657B)


      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    xmlns:android="http://schemas.android.com/apk/res/android"
      8    xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools"
      9    android:id="@+id/constraintLayout"
     10    android:layout_width="match_parent"
     11    android:layout_height="wrap_content"
     12    android:orientation="horizontal"
     13    android:baselineAligned="false">
     14 
     15    <RadioButton
     16        android:id="@+id/radio_button"
     17        android:layout_width="@dimen/radio_button_preference_height"
     18        android:layout_height="@dimen/radio_button_preference_height"
     19        android:background="@android:color/transparent"
     20        android:layout_gravity="start"
     21        android:button="@null"
     22        android:clickable="false"
     23        android:focusable="false"
     24        android:layout_marginStart="@dimen/radio_button_preference_horizontal"
     25        tools:drawableStart="?android:attr/listChoiceIndicatorSingle"
     26        app:layout_constraintStart_toStartOf="parent"
     27        app:layout_constraintTop_toTopOf="parent"/>
     28 
     29    <TextView
     30        android:id="@+id/title"
     31        android:layout_width="0dp"
     32        android:layout_marginStart="@dimen/radiobutton_preference_margin_start"
     33        android:layout_height="wrap_content"
     34        android:minHeight="@dimen/radio_button_preference_height"
     35        android:gravity="center|start"
     36        android:layout_marginEnd="@dimen/radio_button_preference_horizontal"
     37        tools:text="@tools:sample/lorem"
     38        android:textAlignment="viewStart"
     39        android:textAppearance="?android:attr/textAppearanceListItem"
     40        app:layout_constraintTop_toTopOf="@id/radio_button"
     41        app:layout_constraintEnd_toEndOf="parent"
     42        app:layout_constraintStart_toEndOf="@id/radio_button"/>
     43 
     44    <TextView
     45        android:id="@+id/widget_summary"
     46        android:layout_width="0dp"
     47        android:layout_height="wrap_content"
     48        android:textAlignment="viewStart"
     49        android:textAppearance="?android:attr/textAppearanceSmall"
     50        android:textColor="?android:attr/textColorSecondary"
     51        tools:text="@tools:sample/lorem/random"
     52        app:layout_constraintBottom_toBottomOf="parent"
     53        app:layout_constraintEnd_toEndOf="@id/title"
     54        app:layout_constraintTop_toBottomOf="@id/title"
     55        app:layout_constraintStart_toStartOf="@id/title" />
     56 
     57 </androidx.constraintlayout.widget.ConstraintLayout>