-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfragment_events.xml
107 lines (93 loc) · 4.39 KB
/
fragment_events.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/swiper"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toTopOf="@id/button_panel">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/list_events"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
android:layout_width="match_parent"
android:layout_height="0dp"
tools:listitem="@layout/layout_event"
/>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
<LinearLayout
android:id="@+id/button_panel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintTop_toBottomOf="@id/swiper"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<com.google.android.material.button.MaterialButton
android:id="@+id/feed_button"
style="@style/Widget.AppTheme.GrayButtons"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/feed_wall"
android:padding="@dimen/margin_small"
app:icon="@drawable/baseline_feed_28" />
<com.google.android.material.button.MaterialButton
android:id="@+id/my_wall_button"
style="@style/Widget.AppTheme.GrayButtons"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/my_wall"
android:padding="@dimen/margin_small"
app:icon="@drawable/baseline_my_feed_28" />
<com.google.android.material.button.MaterialButton
android:id="@+id/jobs_button"
style="@style/Widget.AppTheme.GrayButtons"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/jobs"
android:padding="@dimen/margin_small"
app:icon="@drawable/baseline_jobs_28" />
</LinearLayout>
<View
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_marginStart="@dimen/margin_default"
android:layout_marginEnd="@dimen/margin_default"
android:background="@color/dark_grey"
app:layout_constraintBottom_toTopOf="@id/button_panel"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<ProgressBar
android:id="@+id/loading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"/>
<TextView
android:id="@+id/empty"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/events_empty"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/add_event_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/margin_small"
android:contentDescription="@string/add_event"
android:src="@drawable/baseline_event_add_28"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>