diff --git a/vector/src/main/res/layout/item_timeline_read_marker.xml b/vector/src/main/res/layout/item_timeline_read_marker.xml index 8ee56045bf..8b4fa261d9 100644 --- a/vector/src/main/res/layout/item_timeline_read_marker.xml +++ b/vector/src/main/res/layout/item_timeline_read_marker.xml @@ -1,18 +1,51 @@ <?xml version="1.0" encoding="utf-8"?> - -<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" - android:layout_height="wrap_content"> + android:layout_height="wrap_content" + android:background="?riotx_background" + android:padding="8dp"> + + <View + android:id="@+id/itemDayLineViewLeft" + android:layout_width="0dp" + android:layout_height="1dp" + android:layout_marginTop="8dp" + android:layout_marginEnd="8dp" + android:layout_marginBottom="8dp" + android:background="@color/notification_accent_color" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toStartOf="@+id/itemDayTextView" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + <TextView - android:layout_width="match_parent" + android:id="@+id/itemDayTextView" + android:layout_width="wrap_content" android:layout_height="wrap_content" + android:fontFamily="sans-serif-medium" + android:gravity="center" + android:text="@string/timeline_unread_messages" + android:textColor="@color/notification_accent_color" + android:textSize="15sp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + + <View + android:id="@+id/itemDayLineViewRight" + android:layout_width="0dp" + android:layout_height="1dp" + android:layout_marginStart="8dp" android:layout_marginTop="8dp" android:layout_marginBottom="8dp" - android:background="?attr/riotx_header_panel_background" - android:gravity="center" - android:minHeight="32dp" - android:text="Unread messages" - android:textColor="?riotx_text_primary" /> + android:background="@color/notification_accent_color" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toEndOf="@id/itemDayTextView" + app:layout_constraintTop_toTopOf="parent" /> -</FrameLayout> \ No newline at end of file + +</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file diff --git a/vector/src/main/res/values/strings_riotX.xml b/vector/src/main/res/values/strings_riotX.xml index dd8dd52dc6..f259a34e44 100644 --- a/vector/src/main/res/values/strings_riotX.xml +++ b/vector/src/main/res/values/strings_riotX.xml @@ -22,6 +22,7 @@ <string name="room_join_rules_public">%1$s made the room public to whoever knows the link.</string> <string name="room_join_rules_invite">%1$s made the room invite only.</string> + <string name="timeline_unread_messages">Unread messages</string> <string name="login_splash_title">Liberate your communication</string> <string name="login_splash_text1">Chat with people directly or in groups</string>