tor-browser

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

focus_preference.xml (3143B)


      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Imported directly from the Android Project:
      3     http://androidxref.com/7.1.1_r6/xref/frameworks/support/v7/preference/res/layout-v11/preference.xml
      4     title has been modified to allow multiline text. -->
      5 <!--
      6  ~ Copyright (C) 2015 The Android Open Source Project
      7  ~
      8  ~ Licensed under the Apache License, Version 2.0 (the "License");
      9  ~ you may not use this file except in compliance with the License.
     10  ~ You may obtain a copy of the License at
     11  ~
     12  ~      http://www.apache.org/licenses/LICENSE-2.0
     13  ~
     14  ~ Unless required by applicable law or agreed to in writing, software
     15  ~ distributed under the License is distributed on an "AS IS" BASIS,
     16  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     17  ~ See the License for the specific language governing permissions and
     18  ~ limitations under the License
     19  -->
     20 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     21    xmlns:app="http://schemas.android.com/apk/res-auto"
     22    android:layout_width="match_parent"
     23    android:layout_height="wrap_content"
     24    android:minHeight="?android:attr/listPreferredItemHeightSmall"
     25    android:gravity="center_vertical"
     26    android:baselineAligned="false"
     27    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
     28    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd">
     29    <LinearLayout
     30        android:id="@+id/icon_frame"
     31        android:layout_width="48dp"
     32        android:layout_height="48dp"
     33        android:gravity="center"
     34        android:orientation="horizontal">
     35        <ImageView
     36            android:id="@android:id/icon"
     37            android:layout_width="24dp"
     38            android:layout_height="24dp"
     39            android:layout_marginEnd="16dp"
     40            android:alpha="0.8"
     41            android:importantForAccessibility="no"
     42            app:tint="@color/colorSettingsTint" />
     43    </LinearLayout>
     44 
     45    <RelativeLayout
     46        android:layout_width="0dp"
     47        android:layout_height="wrap_content"
     48        android:layout_weight="1"
     49        android:paddingTop="10dip"
     50        android:paddingBottom="10dip">
     51 
     52        <TextView
     53            android:id="@android:id/title"
     54            style="@style/Preference.Title"
     55            android:layout_width="wrap_content"
     56            android:layout_height="wrap_content"
     57            android:minHeight="24dp" />
     58 
     59        <TextView
     60            android:id="@android:id/summary"
     61            style="@style/Preference.Summary"
     62            android:layout_width="wrap_content"
     63            android:layout_height="wrap_content"
     64            android:layout_below="@android:id/title"
     65            android:layout_alignStart="@android:id/title"
     66            android:maxLines="10"
     67            android:minHeight="16dp" />
     68 
     69    </RelativeLayout>
     70 
     71    <!-- Preference should place its actual preference widget here. -->
     72    <LinearLayout android:id="@android:id/widget_frame"
     73        android:layout_width="wrap_content"
     74        android:layout_height="match_parent"
     75        android:minWidth="58dip"
     76        android:gravity="end|center_vertical"
     77        android:orientation="vertical" />
     78 
     79 </LinearLayout>