Improved a few images
|
@ -84,22 +84,22 @@ class ImdnAdapter(
|
||||||
ChatMessage.State.Displayed -> {
|
ChatMessage.State.Displayed -> {
|
||||||
binding.title = R.string.chat_message_imdn_displayed
|
binding.title = R.string.chat_message_imdn_displayed
|
||||||
binding.textColor = R.color.imdn_read_color
|
binding.textColor = R.color.imdn_read_color
|
||||||
binding.icon = R.drawable.message_read
|
binding.icon = R.drawable.chat_read
|
||||||
}
|
}
|
||||||
ChatMessage.State.DeliveredToUser -> {
|
ChatMessage.State.DeliveredToUser -> {
|
||||||
binding.title = R.string.chat_message_imdn_delivered
|
binding.title = R.string.chat_message_imdn_delivered
|
||||||
binding.textColor = R.color.grey_color
|
binding.textColor = R.color.grey_color
|
||||||
binding.icon = R.drawable.message_delivered
|
binding.icon = R.drawable.chat_delivered
|
||||||
}
|
}
|
||||||
ChatMessage.State.Delivered -> {
|
ChatMessage.State.Delivered -> {
|
||||||
binding.title = R.string.chat_message_imdn_sent
|
binding.title = R.string.chat_message_imdn_sent
|
||||||
binding.textColor = R.color.grey_color
|
binding.textColor = R.color.grey_color
|
||||||
binding.icon = R.drawable.message_delivered
|
binding.icon = R.drawable.chat_delivered
|
||||||
}
|
}
|
||||||
ChatMessage.State.NotDelivered -> {
|
ChatMessage.State.NotDelivered -> {
|
||||||
binding.title = R.string.chat_message_imdn_undelivered
|
binding.title = R.string.chat_message_imdn_undelivered
|
||||||
binding.textColor = R.color.red_color
|
binding.textColor = R.color.red_color
|
||||||
binding.icon = R.drawable.message_undelivered
|
binding.icon = R.drawable.chat_error
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
binding.executePendingBindings()
|
binding.executePendingBindings()
|
||||||
|
|
|
@ -160,9 +160,9 @@ class ChatMessageViewModel(
|
||||||
}
|
}
|
||||||
|
|
||||||
imdnIcon.value = when (state) {
|
imdnIcon.value = when (state) {
|
||||||
ChatMessage.State.DeliveredToUser -> R.drawable.imdn_received
|
ChatMessage.State.DeliveredToUser -> R.drawable.chat_delivered
|
||||||
ChatMessage.State.Displayed -> R.drawable.imdn_read
|
ChatMessage.State.Displayed -> R.drawable.chat_read
|
||||||
else -> R.drawable.imdn_error
|
else -> R.drawable.chat_error
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
BIN
app/src/main/res/drawable-xhdpi/chat_delivered.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
app/src/main/res/drawable-xhdpi/chat_error.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 636 B After Width: | Height: | Size: 815 B |
BIN
app/src/main/res/drawable-xhdpi/chat_read.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 648 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.1 KiB |
|
@ -49,7 +49,7 @@
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/imdn"
|
android:id="@+id/imdn"
|
||||||
android:visibility="@{viewModel.chatMessage.outgoing ? (viewModel.showImdn ? View.VISIBLE : View.INVISIBLE) : View.INVISIBLE}"
|
android:visibility="@{viewModel.chatMessage.outgoing ? (viewModel.showImdn ? View.VISIBLE : View.INVISIBLE) : View.INVISIBLE}"
|
||||||
android:src="@{viewModel.imdnIcon, default=@drawable/imdn_received}"
|
android:src="@{viewModel.imdnIcon, default=@drawable/chat_delivered}"
|
||||||
android:contentDescription="@string/content_description_delivery_status"
|
android:contentDescription="@string/content_description_delivery_status"
|
||||||
android:layout_width="10dp"
|
android:layout_width="10dp"
|
||||||
android:layout_height="10dp"
|
android:layout_height="10dp"
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="5dp"
|
android:padding="5dp"
|
||||||
android:contentDescription="@{title}"
|
android:contentDescription="@{title}"
|
||||||
android:src="@{icon, default=@drawable/message_read}" />
|
android:src="@{icon, default=@drawable/chat_read}" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|