Source code
Revision control
Copy as Markdown
Other Tools
<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/collection_constraint_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false">
<Button
android:id="@+id/back_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:drawablePadding="8dp"
android:gravity="start|center_vertical"
android:paddingStart="16dp"
android:paddingTop="16dp"
android:paddingEnd="8dp"
android:paddingBottom="16dp"
android:text="@string/create_collection_select_tabs"
android:textAppearance="@style/HeaderTextStyle"
android:textColor="@color/fx_mobile_text_color_oncolor_primary"
android:textSize="20sp"
app:drawableStartCompat="@drawable/mozac_ic_back_24"
app:drawableTint="@color/fx_mobile_icon_color_oncolor"
app:layout_constrainedWidth="true"
app:layout_constraintEnd_toStartOf="@+id/guideline"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="ButtonStyleXmlDetector" />
<Button
android:id="@+id/select_all_button"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:textStyle="bold"
android:gravity="start|center_vertical"
android:paddingStart="8dp"
android:paddingTop="16dp"
android:paddingEnd="16dp"
android:paddingBottom="16dp"
android:text="@string/create_collection_select_all"
android:textAllCaps="false"
android:textColor="@color/fx_mobile_text_color_oncolor_primary"
android:textSize="16sp"
app:layout_constrainedWidth="true"
app:layout_constraintBottom_toBottomOf="@id/back_button"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1"
app:layout_constraintStart_toEndOf="@+id/guideline"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="ButtonStyleXmlDetector" />
<androidx.constraintlayout.widget.Guideline
android:id="@+id/guideline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintGuide_percent="0.5" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/collections_list"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginStart="@dimen/component_collection_creation_list_margin"
android:layout_marginTop="@dimen/component_collection_creation_list_margin"
android:layout_marginEnd="@dimen/component_collection_creation_list_margin"
android:visibility="gone"
app:layout_constraintBottom_toTopOf="@id/bottom_button_bar_layout"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/back_button"
tools:listitem="@layout/collections_list_item" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/tab_list"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginStart="@dimen/component_collection_creation_list_margin"
android:layout_marginTop="@dimen/component_collection_creation_list_margin"
android:layout_marginEnd="@dimen/component_collection_creation_list_margin"
app:layout_constraintBottom_toTopOf="@id/bottom_button_bar_layout"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/back_button"
tools:listitem="@layout/collection_tab_list_row" />
<View
android:id="@+id/tab_list_dim"
android:layout_width="0dp"
android:layout_height="0dp"
android:alpha="0"
android:background="?scrim"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="@id/tab_list"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<View
android:id="@+id/bottom_gradient"
android:layout_width="match_parent"
android:layout_height="102dp"
android:background="@drawable/simple_dark_grey_gradient"
android:focusable="false"
app:layout_constraintBottom_toBottomOf="parent" />
<EditText
android:id="@+id/name_collection_edittext"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:autofillHints="false"
android:background="?attr/layer1"
android:focusedByDefault="true"
android:hint="@string/collection_name_hint"
android:imeOptions="actionDone"
android:importantForAutofill="no"
android:inputType="textCapSentences"
android:paddingStart="20dp"
android:paddingTop="12dp"
android:paddingEnd="20dp"
android:paddingBottom="12dp"
android:text="@string/create_collection_default_name"
android:textColor="?attr/textPrimary"
android:textSize="16sp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
tools:targetApi="o" />
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/bottom_button_bar_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:background="@drawable/add_tabs_to_collection_background"
android:clipToPadding="false"
android:foreground="@drawable/rounded_ripple"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<ImageButton
android:id="@+id/bottom_bar_icon_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@string/create_collection_close"
android:padding="16dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_close"
app:tint="?iconOnColor" />
<TextView
android:id="@+id/bottom_bar_text"
style="@style/Header16TextStyle"
android:layout_width="0dp"
android:layout_height="0dp"
android:gravity="center_vertical"
android:text="@string/create_collection_save_to_collection_empty"
android:textColor="?textActionPrimary"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/save_button"
app:layout_constraintStart_toEndOf="@id/bottom_bar_icon_button"
app:layout_constraintTop_toTopOf="parent" />
<com.google.android.material.button.MaterialButton
android:id="@+id/save_button"
style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:text="@string/create_collection_save"
android:textAlignment="center"
android:textColor="?textActionPrimary"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>