-
Notifications
You must be signed in to change notification settings - Fork 137
Description
Using the ChatMessageView version 1.0.7 and loading asynchronously from Picasso gives me this cut of picture:
Notice the Picasso setIndicatorsEnabled(true)blue color marker saying it´s loaded from disk.
The bottom picture is nr: 1 in the RecyclerViewList. I dont see this on the other landscapes pictures only the portrait is affected
When i swipe down and swipe up again it looks like this.
Picasso working ok as setIndicatorsEnabled(true)now show the green color loaded from memory.
but the picture is cut of if like the reused viewholder misses a layout run:
Also the orange timestamp text is hidden behind the cut of picture but on the other picture the time stamp is below.
Basically could you make it work using async loading would be grate. This picture problem is also happening for text. I have to execute the chatAdapter.notifyItemChanged(position); to create the layout in ChatMessageView.
Here´s my xml maybe I did something wrong:
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp">
<com.github.curioustechizen.ago.RelativeTimeTextView
android:id="@+id/timestamp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="8dp"
android:layout_marginStart="16dp"
android:textColor="?AppTheme.ChatBubbleTextColor"
android:textSize="@dimen/chat_timestamp_text_size"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toLeftOf="@+id/guideline1"
tools:text="Just Now" />
<android.support.constraint.Guideline
android:id="@+id/guideline1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintGuide_percent="0.88611114"
tools:layout_editor_absoluteX="319dp"
tools:layout_editor_absoluteY="0dp" />
<ImageView
android:id="@+id/thumbnail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="@+id/guideline1"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:src="@drawable/tw__composer_logo_blue" />
<me.himanshusoni.chatmessageview.ChatMessageView
android:id="@+id/chatMessageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:cmv_arrowGravity="center"
app:cmv_arrowPosition="right"
app:cmv_backgroundColor="?AppTheme.ChatBubbleBackGroundColor"
app:cmv_backgroundColorPressed="?AppTheme.ChatBubbleBackGroundColorPressed"
app:cmv_contentPadding="10dp"
app:cmv_cornerRadius="10dp"
app:cmv_showArrow="true"
app:layout_constraintBottom_toTopOf="@+id/timestamp"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginStart="16dp"
app:layout_constraintLeft_toLeftOf="parent"
android:layout_marginLeft="16dp"
app:layout_constraintRight_toLeftOf="@+id/guideline1"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
app:layout_constraintHorizontal_bias="1.0">
<ImageView
android:id="@+id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?AppTheme.ChatBubbleBackGroundColor"/>
</me.himanshusoni.chatmessageview.ChatMessageView>
</android.support.constraint.ConstraintLayout>

