2019-02-11 01:30:37 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-03-01 00:16:45 +00:00
|
|
|
<!-- 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-03-21 00:26:13 +00:00
|
|
|
<LinearLayout 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-03-01 00:16:45 +00:00
|
|
|
android:layout_width="match_parent"
|
2019-03-21 00:26:13 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_behavior="@string/bottom_sheet_behavior">
|
2019-02-11 01:30:37 +00:00
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
2019-03-21 00:26:13 +00:00
|
|
|
android:id="@+id/current_session_card"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_margin="16dp"
|
2019-04-18 16:26:03 +00:00
|
|
|
app:cardBackgroundColor="?above"
|
2019-04-12 22:20:49 +00:00
|
|
|
android:background="?foundation"
|
2019-03-21 00:26:13 +00:00
|
|
|
android:elevation="5dp"
|
|
|
|
android:padding="10dp"
|
|
|
|
app:cardCornerRadius="10dp">
|
|
|
|
|
2019-02-11 01:30:37 +00:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2019-03-21 00:26:13 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
2019-02-11 01:30:37 +00:00
|
|
|
|
|
|
|
<ImageView
|
2019-03-21 00:26:13 +00:00
|
|
|
android:id="@+id/current_session_image"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_margin="12dp"
|
|
|
|
android:contentDescription="@string/current_session_image"
|
|
|
|
android:paddingBottom="20dp"
|
2019-04-04 22:11:51 +00:00
|
|
|
android:src="@drawable/ic_session_thumbnail_placeholder_greyscale"
|
2019-05-06 18:20:19 +00:00
|
|
|
android:tint="@color/collection_icon_color_blue"
|
2019-04-04 22:11:51 +00:00
|
|
|
android:tintMode="multiply"
|
2019-03-21 00:26:13 +00:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2019-02-11 01:30:37 +00:00
|
|
|
|
|
|
|
<TextView
|
2019-03-21 00:26:13 +00:00
|
|
|
android:id="@+id/current_session_card_title"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_marginEnd="12dp"
|
|
|
|
android:layout_marginBottom="8dp"
|
2019-04-19 18:56:12 +00:00
|
|
|
android:text="@string/tab_header_label"
|
2019-03-21 23:51:01 +00:00
|
|
|
android:textAppearance="@style/HeaderTextStyle"
|
2019-04-12 22:20:49 +00:00
|
|
|
android:textColor="?primaryText"
|
2019-03-21 00:26:13 +00:00
|
|
|
app:layout_constraintStart_toEndOf="@id/current_session_image"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2019-02-11 01:30:37 +00:00
|
|
|
|
|
|
|
<TextView
|
2019-03-21 00:26:13 +00:00
|
|
|
android:id="@+id/current_session_card_tab_list"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:layout_marginBottom="10dp"
|
|
|
|
android:fadingEdgeLength="48dp"
|
|
|
|
android:requiresFadingEdge="vertical"
|
|
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Caption"
|
2019-04-12 22:20:49 +00:00
|
|
|
android:textColor="?secondaryText"
|
2019-03-21 00:26:13 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/current_session_image"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/current_session_card_title"
|
|
|
|
app:layout_constraintVertical_bias="0"
|
|
|
|
tools:text="@tools:sample/lorem/random" />
|
2019-02-11 01:30:37 +00:00
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
2019-03-21 00:26:13 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/delete_session_button"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-04-12 22:20:49 +00:00
|
|
|
android:background="?foundation"
|
2019-03-21 00:26:13 +00:00
|
|
|
android:drawableStart="@drawable/ic_delete"
|
|
|
|
android:drawablePadding="14dp"
|
2019-04-18 16:26:03 +00:00
|
|
|
android:drawableTint="?destructive"
|
2019-03-21 00:26:13 +00:00
|
|
|
android:paddingStart="20dp"
|
|
|
|
android:paddingTop="12dp"
|
|
|
|
android:paddingBottom="12dp"
|
|
|
|
android:text="@string/current_session_delete"
|
2019-04-18 16:26:03 +00:00
|
|
|
android:textColor="?destructive"
|
2019-03-21 00:26:13 +00:00
|
|
|
android:textSize="16sp"
|
|
|
|
tools:targetApi="m" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
2019-04-22 15:19:18 +00:00
|
|
|
android:background="?neutralFaded"/>
|
2019-03-21 00:26:13 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/archive_session_button"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-04-12 22:20:49 +00:00
|
|
|
android:background="?foundation"
|
2019-05-16 21:02:24 +00:00
|
|
|
android:drawableStart="@drawable/ic_tab_collection"
|
2019-03-21 00:26:13 +00:00
|
|
|
android:drawablePadding="14dp"
|
2019-04-12 22:20:49 +00:00
|
|
|
android:drawableTint="?accent"
|
2019-03-21 00:26:13 +00:00
|
|
|
android:paddingStart="20dp"
|
|
|
|
android:paddingTop="12dp"
|
|
|
|
android:paddingBottom="12dp"
|
|
|
|
android:text="@string/current_session_save"
|
2019-04-12 22:20:49 +00:00
|
|
|
android:textColor="?primaryText"
|
2019-04-02 00:53:37 +00:00
|
|
|
android:textSize="16sp"
|
2019-04-17 23:40:48 +00:00
|
|
|
android:visibility="gone"
|
2019-04-02 00:53:37 +00:00
|
|
|
tools:targetApi="m" />
|
2019-02-11 01:30:37 +00:00
|
|
|
|
2019-03-21 00:26:13 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/send_and_share_session_button"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-04-12 22:20:49 +00:00
|
|
|
android:background="?foundation"
|
2019-04-19 17:30:32 +00:00
|
|
|
android:drawableStart="@drawable/mozac_ic_share"
|
2019-03-21 00:26:13 +00:00
|
|
|
android:drawablePadding="14dp"
|
2019-04-12 22:20:49 +00:00
|
|
|
android:drawableTint="?primaryText"
|
2019-03-21 00:26:13 +00:00
|
|
|
android:paddingStart="20dp"
|
|
|
|
android:paddingTop="12dp"
|
|
|
|
android:paddingBottom="12dp"
|
|
|
|
android:text="@string/current_session_share"
|
2019-04-12 22:20:49 +00:00
|
|
|
android:textColor="?primaryText"
|
2019-04-02 00:53:37 +00:00
|
|
|
android:textSize="16sp"
|
2019-04-17 23:40:48 +00:00
|
|
|
android:visibility="gone"
|
2019-04-02 00:53:37 +00:00
|
|
|
tools:targetApi="m" />
|
2019-02-11 01:30:37 +00:00
|
|
|
</LinearLayout>
|