tor-browser

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

preference_radio_button.xml (2705B)


      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_width"
     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_start_margin"
     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_height="wrap_content"
     33        android:layout_marginStart="@dimen/radio_button_preference_title_margins"
     34        android:layout_marginEnd="@dimen/radio_button_preference_title_margins"
     35        android:gravity="center|start"
     36        android:textAlignment="viewStart"
     37        android:textAppearance="@style/TextAppearance.Material3.BodyLarge"
     38        android:textStyle="normal"
     39        app:layout_constraintBottom_toBottomOf="@id/radio_button"
     40        app:layout_constraintEnd_toEndOf="parent"
     41        app:layout_constraintStart_toEndOf="@id/radio_button"
     42        app:layout_constraintTop_toTopOf="@id/radio_button"
     43        tools:text="@tools:sample/lorem" />
     44 
     45    <TextView
     46        android:id="@+id/widget_summary"
     47        android:layout_width="0dp"
     48        android:layout_height="wrap_content"
     49        android:textAlignment="viewStart"
     50        android:textAppearance="@style/TextAppearance.Material3.BodySmall"
     51        android:textColor="?android:attr/textColorSecondary"
     52        tools:text="@tools:sample/lorem"
     53        app:layout_constraintBottom_toBottomOf="parent"
     54        app:layout_constraintEnd_toEndOf="@id/title"
     55        app:layout_constraintTop_toBottomOf="@id/title"
     56        app:layout_constraintStart_toStartOf="@id/title" />
     57 
     58 </androidx.constraintlayout.widget.ConstraintLayout>