2020-07-22 21:32:42 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-08-06 17:16:51 +02:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2020-07-22 21:32:42 +02:00
|
|
|
android:id="@+id/mainLayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="?attr/primaryBackgroundColor"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
|
|
android:id="@+id/pullToRefresh"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/notifications"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
|
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
|
|
2020-08-09 10:23:51 +02:00
|
|
|
<com.google.android.material.progressindicator.ProgressIndicator
|
|
|
|
android:id="@+id/loadingMoreView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="gone"
|
|
|
|
style="@style/Widget.MaterialComponents.ProgressIndicator.Linear.Indeterminate"
|
|
|
|
app:indicatorColor="?attr/progressIndicatorColor" />
|
|
|
|
|
|
|
|
<com.google.android.material.progressindicator.ProgressIndicator
|
|
|
|
android:id="@+id/progressBar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
style="@style/Widget.MaterialComponents.ProgressIndicator.Linear.Indeterminate"
|
|
|
|
app:indicatorColor="?attr/progressIndicatorColor" />
|
|
|
|
|
2020-07-22 21:32:42 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/noDataNotifications"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_margin="15dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/noDataNotifications"
|
|
|
|
android:textColor="?attr/primaryTextColor"
|
|
|
|
android:textSize="20sp"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
2020-08-06 17:16:51 +02:00
|
|
|
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
2020-07-22 21:32:42 +02:00
|
|
|
android:id="@+id/markAllAsRead"
|
2020-08-06 17:16:51 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end|bottom"
|
|
|
|
android:layout_margin="16dp"
|
|
|
|
android:text="@string/markAsRead"
|
2020-07-22 21:32:42 +02:00
|
|
|
android:contentDescription="@string/markAsRead"
|
2020-08-06 17:16:51 +02:00
|
|
|
android:textColor="@color/colorWhite"
|
|
|
|
android:backgroundTint="@color/darkGreen"
|
|
|
|
app:layout_behavior="com.google.android.material.behavior.HideBottomViewOnScrollBehavior"
|
|
|
|
app:iconTint="@color/colorWhite"
|
|
|
|
app:icon="@drawable/ic_done" />
|
2020-07-22 21:32:42 +02:00
|
|
|
|
2020-08-06 17:16:51 +02:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|