From 585433eb20fc4d9983dbc0784a4d15ccd16457be Mon Sep 17 00:00:00 2001 From: Janne Koschinski <janne@kuschku.de> Date: Tue, 18 Dec 2018 09:42:38 +0100 Subject: [PATCH] Improve daychange message UI --- .../layout/widget_chatmessage_daychange.xml | 26 ++++++++++++++----- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/app/src/main/res/layout/widget_chatmessage_daychange.xml b/app/src/main/res/layout/widget_chatmessage_daychange.xml index 4f79b6955..eb462829f 100644 --- a/app/src/main/res/layout/widget_chatmessage_daychange.xml +++ b/app/src/main/res/layout/widget_chatmessage_daychange.xml @@ -26,11 +26,6 @@ android:orientation="vertical" android:textAppearance="?android:attr/textAppearanceListItemSmall"> - <View - android:layout_width="match_parent" - android:layout_height="1dp" - android:background="?colorDivider" /> - <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" @@ -42,16 +37,33 @@ android:paddingStart="@dimen/message_horizontal" android:paddingTop="@dimen/message_vertical_daychange"> + <View + android:layout_width="0dip" + android:layout_height="1dp" + android:layout_gravity="center_vertical" + android:layout_weight="1" + android:background="?colorDivider" /> + <de.kuschku.quasseldroid.util.ui.RipplePassthroughTextView android:id="@+id/daychange" style="@style/Widget.RtlConformTextView" - android:layout_width="0dip" + android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_weight="1" android:gravity="center" android:textColor="?attr/colorForeground" android:textStyle="bold" + android:layout_marginStart="@dimen/message_horizontal" + android:layout_marginLeft="@dimen/message_horizontal" + android:layout_marginEnd="@dimen/message_horizontal" + android:layout_marginRight="@dimen/message_horizontal" tools:text="27.03.2018" /> + + <View + android:layout_width="0dip" + android:layout_height="1dp" + android:layout_gravity="center_vertical" + android:layout_weight="1" + android:background="?colorDivider" /> </LinearLayout> </LinearLayout> -- GitLab