Avoid using @tools:sample/full_names

And make preview works for some text
This commit is contained in:
Benoit Marty 2021-05-10 22:21:22 +02:00 committed by Benoit Marty
parent 3e66988b6a
commit 0cd1d57fc0
7 changed files with 11 additions and 9 deletions

View file

@ -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" />
<TextView
android:id="@+id/bottom_sheet_message_preview_timestamp"

View file

@ -41,7 +41,8 @@
app:layout_constraintEnd_toStartOf="@+id/bottomSheetRoomPreviewLowPriority"
app:layout_constraintStart_toEndOf="@id/bottomSheetRoomPreviewAvatar"
app:layout_constraintTop_toTopOf="@id/bottomSheetRoomPreviewAvatar"
tools:text="@tools:sample/full_names" />
tools:fontFamily="sans-serif"
tools:text="@sample/matrix.json/data/roomName" />
<ImageView
android:id="@+id/bottomSheetRoomPreviewLowPriority"

View file

@ -24,7 +24,7 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed"
tools:text="@tools:sample/full_names" />
tools:text="@sample/matrix.json/data/displayName" />
<TextView
android:id="@+id/contactDetailMatrixId"

View file

@ -55,7 +55,7 @@
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/createDirectRoomUserAvatarContainer"
app:layout_constraintTop_toTopOf="parent"
tools:text="@tools:sample/full_names" />
tools:text="@sample/matrix.json/data/displayName" />
<TextView
android:id="@+id/createDirectRoomUserID"
@ -70,6 +70,6 @@
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="@+id/createDirectRoomUserName"
app:layout_constraintTop_toBottomOf="@+id/createDirectRoomUserName"
tools:text="Blabla" />
tools:text="@sample/matrix.json/data/mxid" />
</androidx.constraintlayout.widget.ConstraintLayout>

View file

@ -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" />
<TextView
android:id="@+id/knownUserID"
@ -69,6 +69,6 @@
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="@+id/knownUserName"
app:layout_constraintTop_toBottomOf="@+id/knownUserName"
tools:text="Blabla" />
tools:text="@sample/matrix.json/data/mxid" />
</androidx.constraintlayout.widget.ConstraintLayout>

View file

@ -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" />
<TextView
android:id="@+id/childRoomTopic"

View file

@ -62,6 +62,6 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/childSpaceAvatar"
app:layout_constraintTop_toTopOf="parent"
tools:text="@tools:sample/full_names" />
tools:text="@sample/matrix.json/data/spaceName" />
</androidx.constraintlayout.widget.ConstraintLayout>