Update messages text size

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2020-05-10 16:27:43 +02:00
parent 5aad6067c2
commit 110ac03471
No known key found for this signature in database
GPG Key ID: CDE0BBD2738C4CC0
3 changed files with 6 additions and 6 deletions

View File

@ -88,7 +88,7 @@ open class ChatPresenter<T : Any>(context: Context, private val onElementClickPa
if (TextMatchers.isMessageWithSingleEmoticonOnly(it.text)) {
holder.itemView.chatMessage.setTextSize(TypedValue.COMPLEX_UNIT_SP, 24f)
} else {
holder.itemView.chatMessage.setTextSize(TypedValue.COMPLEX_UNIT_SP, 12f)
holder.itemView.chatMessage.setTextSize(TypedValue.COMPLEX_UNIT_SP, 14f)
}
if (shouldShowNameAndAvatar) {
@ -112,7 +112,7 @@ open class ChatPresenter<T : Any>(context: Context, private val onElementClickPa
">_",
context.resources.getColor(R.color.black)
)
holder.itemView.authorAvatar.load(drawable)
holder.itemView.authorAvatar.loadAny(drawable, imageLoader.getImageLoader())
} else {
imageLoader.loadImage(holder.itemView.authorAvatar, it.user.avatar)
}

View File

@ -62,7 +62,7 @@
android:layout_alignStart="@id/quotedAuthor"
android:layout_below="@id/quotedPreviewImage"
android:autoLink="all"
android:textSize="12sp"
android:textSize="14sp"
tools:text="Just another chat message" />
<TextView
@ -72,7 +72,7 @@
android:layout_below="@id/quotedChatText"
android:layout_alignParentEnd="true"
android:textAlignment="textEnd"
android:textSize="10sp"
android:textSize="12sp"
tools:text="12:30" />
</RelativeLayout>

View File

@ -58,7 +58,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="40dp"
android:layout_marginEnd="8dp"
android:textSize="12sp"
android:textSize="14sp"
android:id="@+id/chatMessage"
android:autoLink="all"
android:layout_below="@id/previewImage"
@ -78,7 +78,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/chatMessage"
android:textSize="10sp"
android:textSize="12sp"
android:layout_above="@id/failedToSendNotice"
android:layout_toStartOf="@id/sendingProgressBar"
android:layout_alignWithParentIfMissing="true"