From 7733e387ee0fc60d833820d1cdffa507ce3c0328 Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Sun, 26 May 2019 08:39:21 +0200 Subject: [PATCH] improve notification fragment layout (#1282) * improve notification fragment layout * improve sw640dp notification fragment layout --- .../keylesspalace/tusky/di/NetworkModule.kt | 2 +- .../fragment_timeline_notifications.xml | 115 ++++++++---------- .../fragment_timeline_notifications.xml | 115 +++++++----------- 3 files changed, 96 insertions(+), 136 deletions(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/di/NetworkModule.kt b/app/src/main/java/com/keylesspalace/tusky/di/NetworkModule.kt index 652c61cb..bdbe7049 100644 --- a/app/src/main/java/com/keylesspalace/tusky/di/NetworkModule.kt +++ b/app/src/main/java/com/keylesspalace/tusky/di/NetworkModule.kt @@ -77,7 +77,7 @@ class NetworkModule { .apply { addInterceptor(InstanceSwitchAuthInterceptor(accountManager)) if (BuildConfig.DEBUG) { - addInterceptor(HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY)) + addInterceptor(HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BASIC)) } } .build() diff --git a/app/src/main/res/layout-sw640dp/fragment_timeline_notifications.xml b/app/src/main/res/layout-sw640dp/fragment_timeline_notifications.xml index bf467a79..e0d0583a 100644 --- a/app/src/main/res/layout-sw640dp/fragment_timeline_notifications.xml +++ b/app/src/main/res/layout-sw640dp/fragment_timeline_notifications.xml @@ -6,102 +6,83 @@ android:layout_height="match_parent" android:background="?attr/tab_page_margin_drawable"> - - + android:layout_height="wrap_content" + android:background="?android:colorBackground" + app:elevation="0dp" + app:layout_behavior="com.keylesspalace.tusky.util.AppBarLayoutNoEmptyScrollBehavior"> - + android:orientation="horizontal" + app:layout_scrollFlags="scroll|enterAlways"> - + android:layout_weight="1" + android:text="@string/notifications_clear" + android:textSize="?attr/status_text_medium" /> - +