2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-11 13:11:01 +00:00
iceraven-browser/app/src/main/res/layout/session_bottom_sheet.xml

131 lines
5.5 KiB
XML
Raw Normal View History

<?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-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"
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">
<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"
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">
<androidx.constraintlayout.widget.ConstraintLayout
2019-03-21 00:26:13 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent">
<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"
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" />
<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"
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" />
<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" />
</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"
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"
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"
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"
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"
android:visibility="gone"
2019-04-02 00:53:37 +00:00
tools:targetApi="m" />
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"
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"
android:visibility="gone"
2019-04-02 00:53:37 +00:00
tools:targetApi="m" />
</LinearLayout>