-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpreview_header_view.xml
92 lines (86 loc) · 4.03 KB
/
preview_header_view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0" encoding="utf-8"?><!--
~ Infomaniak kDrive - Android
~ Copyright (C) 2024 Infomaniak Network SA
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<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"
android:id="@+id/header"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.button.MaterialButton
android:id="@+id/backButton"
style="@style/IconButton"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginStart="@dimen/marginStandardMedium"
android:layout_marginTop="@dimen/marginStandardMedium"
android:contentDescription="@string/buttonBack"
app:backgroundTint="@color/previewBackgroundTransparent"
app:icon="@drawable/ic_chevron_left"
app:iconSize="20dp"
app:iconTint="@android:color/white"
app:layout_constraintEnd_toStartOf="@+id/pageNumberChip"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintHorizontal_chainStyle="spread_inside"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<com.google.android.material.chip.Chip
android:id="@+id/pageNumberChip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/marginStandardMedium"
android:backgroundTint="#80111C28"
android:clickable="false"
android:textColor="@color/white"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/endButton"
app:layout_constraintStart_toEndOf="@+id/backButton"
app:layout_constraintTop_toTopOf="parent"
tools:text="102 sur 250"
tools:visibility="visible" />
<FrameLayout
android:id="@+id/endButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/marginStandardMedium"
android:layout_marginEnd="@dimen/marginStandardMedium"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/pageNumberChip"
app:layout_constraintTop_toTopOf="parent">
<com.google.android.material.button.MaterialButton
android:id="@+id/editButton"
style="@style/IconButton"
android:layout_width="50dp"
android:layout_height="50dp"
android:contentDescription="@string/buttonEdit"
app:backgroundTint="@color/previewBackgroundTransparent"
app:icon="@drawable/ic_edit_document"
app:iconSize="20dp"
app:iconTint="@android:color/white" />
<com.google.android.material.button.MaterialButton
android:id="@+id/openWithButton"
style="@style/IconButton"
android:layout_width="50dp"
android:layout_height="50dp"
android:contentDescription="@string/openWith"
app:backgroundTint="@color/previewBackgroundTransparent"
app:icon="@drawable/ic_open_with"
app:iconSize="20dp"
app:iconTint="@android:color/white" />
</FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout>