1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3
+ xmlns : app =" http://schemas.android.com/apk/res-auto"
4
+ xmlns : tools =" http://schemas.android.com/tools"
5
+ android : layout_width =" match_parent"
6
+ android : layout_height =" match_parent"
7
+ android : orientation =" vertical"
8
+ tools : context =" .MainActivity" >
9
+
10
+ <androidx .recyclerview.widget.RecyclerView
11
+ android : id =" @+id/rv_files"
12
+ android : layout_width =" match_parent"
13
+ android : layout_height =" match_parent"
14
+ android : layout_above =" @id/btn_open_files"
15
+ android : clipToPadding =" false"
16
+ android : layoutDirection =" rtl"
17
+ android : padding =" 2dp"
18
+ app : layoutManager =" androidx.recyclerview.widget.GridLayoutManager"
19
+ app : spanCount =" 1"
20
+ tools : itemCount =" 5"
21
+ tools : listitem =" @layout/file_layout" />
22
+
23
+ <com .google.android.material.button.MaterialButton
24
+ android : id =" @+id/btn_open_files"
25
+ android : layout_width =" match_parent"
26
+ android : layout_height =" wrap_content"
27
+ android : layout_alignParentBottom =" true"
28
+ android : layout_marginHorizontal =" 16dp"
29
+ android : layout_marginVertical =" 8dp"
30
+ android : gravity =" center"
31
+ android : paddingVertical =" 12dp"
32
+ android : text =" Show Files"
33
+ android : textColor =" @color/white"
34
+ android : textSize =" 22sp"
35
+ app : backgroundTint =" @color/purple_700"
36
+ app : cornerRadius =" 16dp" />
37
+
38
+ <com .google.android.material.floatingactionbutton.FloatingActionButton
39
+ android : id =" @+id/fab"
40
+ android : layout_width =" wrap_content"
41
+ android : layout_height =" wrap_content"
42
+ android : layout_above =" @id/btn_open_files"
43
+ android : layout_marginStart =" 16dp"
44
+ android : rotation =" 180"
45
+ app : backgroundTint =" @color/purple_700"
46
+ app : srcCompat =" @drawable/ic_chevron_right"
47
+ app : tint =" @color/white" />
48
+
49
+ </RelativeLayout >
0 commit comments