From 0cd1d57fc09889284601d0ae401f2d5b078b9365 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 10 May 2021 22:21:22 +0200 Subject: [PATCH] Avoid using @tools:sample/full_names And make preview works for some text --- .../src/main/res/layout/item_bottom_sheet_message_preview.xml | 3 ++- vector/src/main/res/layout/item_bottom_sheet_room_preview.xml | 3 ++- vector/src/main/res/layout/item_contact_detail.xml | 2 +- vector/src/main/res/layout/item_create_direct_room_user.xml | 4 ++-- vector/src/main/res/layout/item_known_user.xml | 4 ++-- vector/src/main/res/layout/item_space_roomchild.xml | 2 +- vector/src/main/res/layout/item_space_subspace.xml | 2 +- 7 files changed, 11 insertions(+), 9 deletions(-) diff --git a/vector/src/main/res/layout/item_bottom_sheet_message_preview.xml b/vector/src/main/res/layout/item_bottom_sheet_message_preview.xml index 6bb803dd2f..35a6232294 100644 --- a/vector/src/main/res/layout/item_bottom_sheet_message_preview.xml +++ b/vector/src/main/res/layout/item_bottom_sheet_message_preview.xml @@ -37,7 +37,8 @@ app:layout_constraintEnd_toStartOf="@+id/bottom_sheet_message_preview_timestamp" app:layout_constraintStart_toEndOf="@id/bottom_sheet_message_preview_avatar" app:layout_constraintTop_toTopOf="@id/bottom_sheet_message_preview_avatar" - tools:text="@tools:sample/full_names" /> + tools:fontFamily="sans-serif" + tools:text="@sample/matrix.json/data/displayName" /> + tools:fontFamily="sans-serif" + tools:text="@sample/matrix.json/data/roomName" /> + tools:text="@sample/matrix.json/data/displayName" /> + tools:text="@sample/matrix.json/data/displayName" /> + tools:text="@sample/matrix.json/data/mxid" /> \ No newline at end of file diff --git a/vector/src/main/res/layout/item_known_user.xml b/vector/src/main/res/layout/item_known_user.xml index a2429e159f..24eb6e94fc 100644 --- a/vector/src/main/res/layout/item_known_user.xml +++ b/vector/src/main/res/layout/item_known_user.xml @@ -54,7 +54,7 @@ app:layout_constraintHorizontal_bias="0.5" app:layout_constraintStart_toEndOf="@+id/knownUserAvatarContainer" app:layout_constraintTop_toTopOf="parent" - tools:text="@tools:sample/full_names" /> + tools:text="@sample/matrix.json/data/displayName" /> + tools:text="@sample/matrix.json/data/mxid" /> \ No newline at end of file diff --git a/vector/src/main/res/layout/item_space_roomchild.xml b/vector/src/main/res/layout/item_space_roomchild.xml index f6083b408b..799f9730a1 100644 --- a/vector/src/main/res/layout/item_space_roomchild.xml +++ b/vector/src/main/res/layout/item_space_roomchild.xml @@ -57,7 +57,7 @@ app:layout_constraintHorizontal_bias="0.5" app:layout_constraintStart_toEndOf="@+id/childRoomAvatar" app:layout_constraintTop_toTopOf="parent" - tools:text="@tools:sample/full_names" /> + tools:text="@sample/matrix.json/data/spaceName" /> + tools:text="@sample/matrix.json/data/spaceName" /> \ No newline at end of file