From c8c79700b316d48f830c004ab2ccc3f6b1f64584 Mon Sep 17 00:00:00 2001 From: danijoo Date: Sat, 2 Jan 2016 22:12:09 +0100 Subject: [PATCH] dividers --- .../NotificationListFragment.java | 1 - .../res/layout/notification_list_item.xml | 136 ++++++++++-------- 2 files changed, 74 insertions(+), 63 deletions(-) diff --git a/app/src/main/java/net/headlezz/notificationlogger/notificationlist/NotificationListFragment.java b/app/src/main/java/net/headlezz/notificationlogger/notificationlist/NotificationListFragment.java index edf4c5b..c18aaab 100644 --- a/app/src/main/java/net/headlezz/notificationlogger/notificationlist/NotificationListFragment.java +++ b/app/src/main/java/net/headlezz/notificationlogger/notificationlist/NotificationListFragment.java @@ -34,7 +34,6 @@ public class NotificationListFragment extends Fragment implements LoaderManager. private NotificationListAdapter mAdapter; // TODO reload list if new notification arrives - // TODO notification list divider @Nullable @Override diff --git a/app/src/main/res/layout/notification_list_item.xml b/app/src/main/res/layout/notification_list_item.xml index 884e617..474e9c9 100644 --- a/app/src/main/res/layout/notification_list_item.xml +++ b/app/src/main/res/layout/notification_list_item.xml @@ -1,77 +1,89 @@ - + android:layout_height="wrap_content"> - - - + android:layout_height="match_parent" + android:foreground="?attr/selectableItemBackground" + android:orientation="horizontal" + android:padding="8dp"> + android:id="@+id/notification_item_appIcon" + android:layout_width="64dp" + android:layout_height="64dp" + android:layout_marginEnd="16dp" + tools:src="@mipmap/ic_launcher" /> - + android:layout_gravity="center_horizontal" + android:orientation="vertical"> - + - + - - + + + + + + - \ No newline at end of file + + + + \ No newline at end of file