From 8aaf29a7c356ac379322c345ade7b1c53175f1a5 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Fri, 13 Sep 2019 17:22:07 +0200 Subject: [PATCH] add dark/light theming for activities headline Signed-off-by: Andy Scherzinger --- .../StickyHeaderItemDecoration.java | 1 - .../res/layout/activity_list_item_header.xml | 28 ++++++++++++++++--- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/owncloud/android/ui/activities/StickyHeaderItemDecoration.java b/src/main/java/com/owncloud/android/ui/activities/StickyHeaderItemDecoration.java index bdcf81795a..f0f8e0b5da 100644 --- a/src/main/java/com/owncloud/android/ui/activities/StickyHeaderItemDecoration.java +++ b/src/main/java/com/owncloud/android/ui/activities/StickyHeaderItemDecoration.java @@ -99,7 +99,6 @@ public class StickyHeaderItemDecoration extends RecyclerView.ItemDecoration { int headerPosition = adapter.getHeaderPositionForItem(itemPosition); int layoutId = adapter.getHeaderLayout(itemPosition); View header = LayoutInflater.from(parent.getContext()).inflate(layoutId, parent, false); - header.setBackgroundColor(Color.WHITE); adapter.bindHeaderData(header, headerPosition); return header; } diff --git a/src/main/res/layout/activity_list_item_header.xml b/src/main/res/layout/activity_list_item_header.xml index 6c8e3de862..a670dbbcde 100644 --- a/src/main/res/layout/activity_list_item_header.xml +++ b/src/main/res/layout/activity_list_item_header.xml @@ -1,16 +1,36 @@ + + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:background="@color/bg_default"> + android:textSize="@dimen/activity_list_item_title_header_text_size" />