tor-browser

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

component_collection_creation.xml (8667B)


      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:id="@+id/collection_constraint_layout"
      9    android:layout_width="match_parent"
     10    android:layout_height="match_parent"
     11    android:clipToPadding="false">
     12 
     13    <Button
     14        android:id="@+id/back_button"
     15        android:layout_width="wrap_content"
     16        android:layout_height="wrap_content"
     17        android:background="?android:attr/selectableItemBackgroundBorderless"
     18        android:drawablePadding="8dp"
     19        android:gravity="start|center_vertical"
     20        android:paddingStart="16dp"
     21        android:paddingTop="16dp"
     22        android:paddingEnd="8dp"
     23        android:paddingBottom="16dp"
     24        android:text="@string/create_collection_select_tabs"
     25        android:textAppearance="@style/HeaderTextStyle"
     26        android:textColor="@color/fx_mobile_text_color_oncolor_primary"
     27        android:textSize="20sp"
     28        app:drawableStartCompat="@drawable/mozac_ic_back_24"
     29        app:drawableTint="@color/fx_mobile_icon_color_oncolor"
     30        app:layout_constrainedWidth="true"
     31        app:layout_constraintEnd_toStartOf="@+id/guideline"
     32        app:layout_constraintHorizontal_bias="0"
     33        app:layout_constraintStart_toStartOf="parent"
     34        app:layout_constraintTop_toTopOf="parent"
     35        tools:ignore="ButtonStyleXmlDetector" />
     36 
     37    <Button
     38        android:id="@+id/select_all_button"
     39        android:layout_width="wrap_content"
     40        android:layout_height="0dp"
     41        android:background="?android:attr/selectableItemBackgroundBorderless"
     42        android:textStyle="bold"
     43        android:gravity="start|center_vertical"
     44        android:paddingStart="8dp"
     45        android:paddingTop="16dp"
     46        android:paddingEnd="16dp"
     47        android:paddingBottom="16dp"
     48        android:text="@string/create_collection_select_all"
     49        android:textAllCaps="false"
     50        android:textColor="@color/fx_mobile_text_color_oncolor_primary"
     51        android:textSize="16sp"
     52        app:layout_constrainedWidth="true"
     53        app:layout_constraintBottom_toBottomOf="@id/back_button"
     54        app:layout_constraintEnd_toEndOf="parent"
     55        app:layout_constraintHorizontal_bias="1"
     56        app:layout_constraintStart_toEndOf="@+id/guideline"
     57        app:layout_constraintTop_toTopOf="parent"
     58        tools:ignore="ButtonStyleXmlDetector" />
     59 
     60    <androidx.constraintlayout.widget.Guideline
     61        android:id="@+id/guideline"
     62        android:layout_width="wrap_content"
     63        android:layout_height="wrap_content"
     64        android:orientation="vertical"
     65        app:layout_constraintGuide_percent="0.5" />
     66 
     67    <androidx.recyclerview.widget.RecyclerView
     68        android:id="@+id/collections_list"
     69        android:layout_width="0dp"
     70        android:layout_height="0dp"
     71        android:layout_marginStart="@dimen/component_collection_creation_list_margin"
     72        android:layout_marginTop="@dimen/component_collection_creation_list_margin"
     73        android:layout_marginEnd="@dimen/component_collection_creation_list_margin"
     74        android:visibility="gone"
     75        app:layout_constraintBottom_toTopOf="@id/bottom_button_bar_layout"
     76        app:layout_constraintEnd_toEndOf="parent"
     77        app:layout_constraintStart_toStartOf="parent"
     78        app:layout_constraintTop_toBottomOf="@id/back_button"
     79        tools:listitem="@layout/collections_list_item" />
     80 
     81    <androidx.recyclerview.widget.RecyclerView
     82        android:id="@+id/tab_list"
     83        android:layout_width="0dp"
     84        android:layout_height="0dp"
     85        android:layout_marginStart="@dimen/component_collection_creation_list_margin"
     86        android:layout_marginTop="@dimen/component_collection_creation_list_margin"
     87        android:layout_marginEnd="@dimen/component_collection_creation_list_margin"
     88        app:layout_constraintBottom_toTopOf="@id/bottom_button_bar_layout"
     89        app:layout_constraintEnd_toEndOf="parent"
     90        app:layout_constraintStart_toStartOf="parent"
     91        app:layout_constraintTop_toBottomOf="@id/back_button"
     92        tools:listitem="@layout/collection_tab_list_row" />
     93 
     94    <View
     95        android:id="@+id/tab_list_dim"
     96        android:layout_width="0dp"
     97        android:layout_height="0dp"
     98        android:alpha="0"
     99        android:background="?scrim"
    100        android:visibility="gone"
    101        app:layout_constraintBottom_toBottomOf="@id/tab_list"
    102        app:layout_constraintEnd_toEndOf="parent"
    103        app:layout_constraintStart_toStartOf="parent"
    104        app:layout_constraintTop_toTopOf="parent" />
    105 
    106    <View
    107        android:id="@+id/bottom_gradient"
    108        android:layout_width="match_parent"
    109        android:layout_height="102dp"
    110        android:background="@drawable/simple_dark_grey_gradient"
    111        android:focusable="false"
    112        app:layout_constraintBottom_toBottomOf="parent" />
    113 
    114    <EditText
    115        android:id="@+id/name_collection_edittext"
    116        android:layout_width="match_parent"
    117        android:layout_height="wrap_content"
    118        android:layout_gravity="bottom|center"
    119        android:autofillHints="false"
    120        android:background="?attr/colorSurface"
    121        android:focusedByDefault="true"
    122        android:hint="@string/collection_name_hint"
    123        android:imeOptions="actionDone"
    124        android:importantForAutofill="no"
    125        android:inputType="textCapSentences"
    126        android:paddingStart="20dp"
    127        android:paddingTop="12dp"
    128        android:paddingEnd="20dp"
    129        android:paddingBottom="12dp"
    130        android:text="@string/create_collection_default_name"
    131        android:textColor="?attr/textPrimary"
    132        android:textSize="16sp"
    133        android:visibility="gone"
    134        app:layout_constraintBottom_toBottomOf="parent" />
    135 
    136    <androidx.constraintlayout.widget.ConstraintLayout
    137        android:id="@+id/bottom_button_bar_layout"
    138        android:layout_width="match_parent"
    139        android:layout_height="wrap_content"
    140        android:layout_margin="16dp"
    141        android:background="@drawable/add_tabs_to_collection_background"
    142        android:clipToPadding="false"
    143        android:foreground="@drawable/rounded_ripple"
    144        app:layout_constraintBottom_toBottomOf="parent"
    145        app:layout_constraintEnd_toEndOf="parent"
    146        app:layout_constraintStart_toStartOf="parent">
    147 
    148        <ImageButton
    149            android:id="@+id/bottom_bar_icon_button"
    150            android:layout_width="wrap_content"
    151            android:layout_height="wrap_content"
    152            android:background="?android:attr/selectableItemBackground"
    153            android:contentDescription="@string/create_collection_close"
    154            android:padding="16dp"
    155            app:layout_constraintBottom_toBottomOf="parent"
    156            app:layout_constraintStart_toStartOf="parent"
    157            app:layout_constraintTop_toTopOf="parent"
    158            app:srcCompat="@drawable/ic_close"
    159            app:tint="?iconOnColor" />
    160 
    161        <TextView
    162            android:id="@+id/bottom_bar_text"
    163            style="@style/Header16TextStyle"
    164            android:layout_width="0dp"
    165            android:layout_height="0dp"
    166            android:gravity="center_vertical"
    167            android:text="@string/create_collection_save_to_collection_empty"
    168            android:textColor="?textActionPrimary"
    169            app:layout_constraintBottom_toBottomOf="parent"
    170            app:layout_constraintEnd_toStartOf="@id/save_button"
    171            app:layout_constraintStart_toEndOf="@id/bottom_bar_icon_button"
    172            app:layout_constraintTop_toTopOf="parent" />
    173 
    174        <com.google.android.material.button.MaterialButton
    175            android:id="@+id/save_button"
    176            style="@style/Widget.MaterialComponents.Button.TextButton"
    177            android:layout_width="wrap_content"
    178            android:layout_height="wrap_content"
    179            android:background="?android:attr/selectableItemBackground"
    180            android:text="@string/create_collection_save"
    181            android:textAlignment="center"
    182            android:textColor="?textActionPrimary"
    183            android:textStyle="bold"
    184            app:layout_constraintBottom_toBottomOf="parent"
    185            app:layout_constraintEnd_toEndOf="parent"
    186            app:layout_constraintTop_toTopOf="parent" />
    187    </androidx.constraintlayout.widget.ConstraintLayout>
    188 </androidx.constraintlayout.widget.ConstraintLayout>