blob: 73cd9dfa82fc83b6343b739c8d7d72b05169272b (
plain)
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
|
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout 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/coordinatorLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.card.EditActivity">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/attachments_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical"
android:visibility="gone"
tools:listitem="@layout/item_attachment_default"
tools:visibility="visible" />
<it.niedermann.nextcloud.deck.ui.view.EmptyContentView
android:id="@+id/empty_content_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"
app:description="@string/no_files_attached_to_this_card"
app:image="@drawable/ic_attach_file_24dp"
app:title="@string/attachments" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
android:contentDescription="@string/upload_a_new_attachment"
android:visibility="gone"
app:srcCompat="@drawable/ic_file_upload_24dp"
tools:visibility="visible" />
<FrameLayout
android:id="@+id/pickerBackdrop"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent"
android:visibility="gone" />
<LinearLayout
android:id="@+id/bottom_sheet_parent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical"
app:elevation="@dimen/spacer_1x"
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/pickerRecyclerView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/spacer_1hx"
android:paddingEnd="@dimen/spacer_1hx"
android:paddingBottom="@dimen/attachments_bottom_navigation_height"
tools:listitem="@layout/support_simple_spinner_dropdown_item"
tools:visibility="gone" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="bottom">
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomNavigation"
android:layout_width="match_parent"
android:layout_height="@dimen/attachments_bottom_navigation_height"
android:translationY="@dimen/attachments_bottom_navigation_height"
app:backgroundTint="?attr/colorSurface"
app:itemIconTint="?attr/colorOnSecondaryContainer"
app:itemTextColor="?attr/colorOnSurface"
app:menu="@menu/attachment_picker_menu" />
</LinearLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|