2019-04-23 00:07:03 +02:00
|
|
|
<?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
|
|
|
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
2019-04-30 00:52:55 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2019-05-02 17:53:40 +02:00
|
|
|
android:id="@+id/collection_constraint_layout"
|
2019-04-23 00:07:03 +02:00
|
|
|
android:layout_width="match_parent"
|
2019-04-23 00:29:48 +02:00
|
|
|
android:layout_height="match_parent"
|
2019-04-30 00:52:55 +02:00
|
|
|
android:clipToPadding="false">
|
2019-04-23 00:07:03 +02:00
|
|
|
|
2019-04-23 00:29:48 +02:00
|
|
|
<Button
|
|
|
|
android:id="@+id/back_button"
|
2019-07-29 14:18:21 +02:00
|
|
|
android:layout_width="0dp"
|
2020-04-03 15:15:30 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingTop="16dp"
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
android:paddingBottom="16dp"
|
2019-04-23 00:29:48 +02:00
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
2019-12-06 04:54:32 +01:00
|
|
|
app:drawableStartCompat="@drawable/mozac_ic_back"
|
2019-04-23 00:29:48 +02:00
|
|
|
android:drawablePadding="8dp"
|
2019-10-24 18:38:58 +02:00
|
|
|
app:drawableTint="@color/neutral_text"
|
2019-08-15 01:55:06 +02:00
|
|
|
android:gravity="start|center_vertical"
|
2019-04-23 00:29:48 +02:00
|
|
|
android:text="@string/create_collection_select_tabs"
|
2019-04-30 00:52:55 +02:00
|
|
|
android:textAppearance="@style/HeaderTextStyle"
|
|
|
|
android:textColor="@color/neutral_text"
|
2019-04-23 00:29:48 +02:00
|
|
|
android:textSize="20sp"
|
2019-07-29 14:18:21 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/guideline"
|
|
|
|
app:layout_constraintHorizontal_bias="0"
|
2019-04-30 00:52:55 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2019-07-29 14:18:21 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2020-04-03 15:15:30 +02:00
|
|
|
app:layout_constraintWidth_default="wrap"/>
|
2019-04-23 00:29:48 +02:00
|
|
|
|
|
|
|
<Button
|
2019-04-23 04:49:44 +02:00
|
|
|
android:id="@+id/select_all_button"
|
2019-07-29 14:18:21 +02:00
|
|
|
android:layout_width="0dp"
|
2019-08-15 01:55:06 +02:00
|
|
|
android:layout_height="0dp"
|
2020-04-03 15:15:30 +02:00
|
|
|
android:paddingStart="8dp"
|
|
|
|
android:paddingTop="16dp"
|
|
|
|
android:paddingEnd="16dp"
|
|
|
|
android:paddingBottom="16dp"
|
2019-04-23 00:29:48 +02:00
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
2019-08-15 01:55:06 +02:00
|
|
|
android:gravity="start|center_vertical"
|
2019-04-24 01:18:59 +02:00
|
|
|
android:text="@string/create_collection_select_all"
|
2019-04-23 00:29:48 +02:00
|
|
|
android:textAllCaps="false"
|
2019-04-23 21:26:19 +02:00
|
|
|
android:textColor="@color/neutral_text"
|
2019-04-30 00:52:55 +02:00
|
|
|
android:textSize="16sp"
|
2020-06-26 11:01:25 +02:00
|
|
|
android:fontFamily="@font/metropolis_bold"
|
2019-04-30 00:52:55 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2019-07-29 14:18:21 +02:00
|
|
|
app:layout_constraintHorizontal_bias="1"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/guideline"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2020-04-03 15:15:30 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="@id/back_button"
|
|
|
|
app:layout_constraintWidth_default="wrap"/>
|
2019-07-29 14:18:21 +02:00
|
|
|
|
|
|
|
<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"/>
|
2019-04-30 00:52:55 +02:00
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/collections_list"
|
2019-06-14 03:02:44 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2019-06-14 03:07:22 +02:00
|
|
|
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"
|
2019-04-30 00:52:55 +02:00
|
|
|
android:visibility="gone"
|
2019-05-31 19:59:51 +02:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/bottom_button_bar_layout"
|
2019-05-16 23:35:15 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2019-10-24 19:24:08 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/back_button"
|
|
|
|
tools:listitem="@layout/collections_list_item" />
|
2019-04-30 00:52:55 +02:00
|
|
|
|
2019-04-23 04:49:44 +02:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/tab_list"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2019-06-14 03:07:22 +02:00
|
|
|
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"
|
2019-05-31 19:59:51 +02:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/bottom_button_bar_layout"
|
2019-04-23 04:49:44 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2019-04-30 00:52:55 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2019-10-24 19:24:08 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/back_button"
|
|
|
|
tools:listitem="@layout/collection_tab_list_row" />
|
2019-04-24 01:18:59 +02:00
|
|
|
|
2019-05-02 17:53:40 +02:00
|
|
|
<View
|
|
|
|
android:id="@+id/tab_list_dim"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:alpha="0"
|
|
|
|
android:background="@drawable/scrim_background"
|
|
|
|
android:visibility="gone"
|
2019-05-16 23:35:15 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="@id/tab_list"
|
2019-05-02 17:53:40 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
2019-11-01 03:37:30 +01:00
|
|
|
<View
|
|
|
|
android:id="@+id/bottom_gradient"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="102dp"
|
|
|
|
android:background="@drawable/simple_dark_grey_gradient"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
android:focusable="false"/>
|
|
|
|
|
2019-11-24 02:56:44 +01:00
|
|
|
<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="?foundation"
|
|
|
|
android:focusedByDefault="true"
|
|
|
|
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="?primaryText"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
tools:targetApi="o" />
|
|
|
|
|
2019-04-24 01:18:59 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2019-05-31 19:59:51 +02:00
|
|
|
android:id="@+id/bottom_button_bar_layout"
|
2019-04-24 01:18:59 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_margin="16dp"
|
2019-05-31 19:59:51 +02:00
|
|
|
android:foreground="@drawable/rounded_ripple"
|
2019-04-30 00:52:55 +02:00
|
|
|
android:background="@drawable/add_tabs_to_collection_background"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2019-04-24 01:18:59 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2019-04-30 00:52:55 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent">
|
|
|
|
|
2019-04-24 01:30:51 +02:00
|
|
|
<ImageButton
|
2019-05-31 19:59:51 +02:00
|
|
|
android:id="@+id/bottom_bar_icon_button"
|
2019-04-24 01:18:59 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-05-27 13:56:22 +02:00
|
|
|
android:padding="16dp"
|
2019-04-24 01:30:51 +02:00
|
|
|
android:background="?android:attr/selectableItemBackground"
|
|
|
|
android:contentDescription="@string/create_collection_close"
|
2019-12-06 04:54:32 +01:00
|
|
|
app:srcCompat="@drawable/mozac_ic_close"
|
2019-04-24 01:18:59 +02:00
|
|
|
android:tint="?neutral"
|
2019-04-30 00:52:55 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2019-04-24 01:18:59 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2019-04-30 00:52:55 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2019-04-24 01:18:59 +02:00
|
|
|
|
|
|
|
<TextView
|
2019-05-31 19:59:51 +02:00
|
|
|
android:id="@+id/bottom_bar_text"
|
2019-04-24 01:18:59 +02:00
|
|
|
android:layout_width="0dp"
|
2019-07-24 16:41:48 +02:00
|
|
|
android:layout_height="0dp"
|
2019-05-02 17:53:40 +02:00
|
|
|
android:gravity="center_vertical"
|
2019-04-30 00:52:55 +02:00
|
|
|
android:text="@string/create_collection_save_to_collection_empty"
|
|
|
|
android:textColor="?neutral"
|
2019-04-24 01:18:59 +02:00
|
|
|
android:textSize="16sp"
|
2020-06-26 11:01:25 +02:00
|
|
|
android:fontFamily="@font/metropolis_semibold"
|
2019-04-30 00:52:55 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2019-05-16 23:35:15 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/save_button"
|
2019-05-31 19:59:51 +02:00
|
|
|
app:layout_constraintStart_toEndOf="@id/bottom_bar_icon_button"
|
2019-04-30 00:52:55 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2019-04-24 01:18:59 +02:00
|
|
|
|
2019-06-29 02:10:54 +02:00
|
|
|
<com.google.android.material.button.MaterialButton
|
2019-05-02 17:53:40 +02:00
|
|
|
android:id="@+id/save_button"
|
2019-06-29 02:10:54 +02:00
|
|
|
style="@style/Widget.MaterialComponents.Button.TextButton"
|
2019-04-24 01:18:59 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-05-02 17:53:40 +02:00
|
|
|
android:background="?android:attr/selectableItemBackground"
|
|
|
|
android:text="@string/create_collection_save"
|
2020-06-26 11:01:25 +02:00
|
|
|
android:textColor="@color/photonWhite"
|
|
|
|
app:fontFamily="@font/metropolis_medium"
|
2019-04-24 01:18:59 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2019-05-02 17:53:40 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2019-04-24 01:18:59 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2019-04-30 00:52:55 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|