diff --git a/Habitica/res/layout/activity_notifications.xml b/Habitica/res/layout/activity_notifications.xml
index 7cca95d2b..1f3f7e3bc 100644
--- a/Habitica/res/layout/activity_notifications.xml
+++ b/Habitica/res/layout/activity_notifications.xml
@@ -38,16 +38,15 @@
+ android:layout_height="match_parent">
-
+ android:showDividers="middle" />
diff --git a/Habitica/res/layout/notification_item.xml b/Habitica/res/layout/notification_item.xml
index 2f2b51049..26a6827df 100644
--- a/Habitica/res/layout/notification_item.xml
+++ b/Habitica/res/layout/notification_item.xml
@@ -3,6 +3,7 @@
android:id="@+id/notification_item"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:background="@color/white"
android:orientation="horizontal"
android:paddingLeft="20dp"
android:paddingTop="10dp"
diff --git a/Habitica/res/layout/notifications_header.xml b/Habitica/res/layout/notifications_header.xml
index bcdc9c3d9..e060a4296 100644
--- a/Habitica/res/layout/notifications_header.xml
+++ b/Habitica/res/layout/notifications_header.xml
@@ -3,9 +3,10 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:background="@color/white"
android:orientation="horizontal"
android:paddingLeft="20dp"
- android:paddingTop="14dp"
+ android:paddingTop="10dp"
android:paddingRight="20dp">
displayNoNotificationsVew()
+ notifications.isEmpty() -> displayNoNotificationsView()
else -> displayNotificationsListView(notifications)
}
}
- private fun displayNoNotificationsVew() {
+ private fun displayNoNotificationsView() {
+ notification_items.showDividers = LinearLayout.SHOW_DIVIDER_NONE
+
notification_items.addView(
inflater.inflate(R.layout.no_notifications, notification_items, false)
)
}
private fun displayNotificationsListView(notifications: List) {
+ notification_items.showDividers = LinearLayout.SHOW_DIVIDER_MIDDLE or LinearLayout.SHOW_DIVIDER_END
+
notification_items.addView(
createNotificationsHeaderView(notifications.count())
)