Improved UI when scrolling through chat room with a lot of images
This commit is contained in:
parent
8f7fa235a1
commit
3f8da2da96
2 changed files with 1 additions and 5 deletions
|
@ -120,7 +120,7 @@
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/image"
|
android:id="@+id/image"
|
||||||
android:layout_width="150dp"
|
android:layout_width="150dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="150dp"
|
||||||
android:layout_below="@id/file_name"
|
android:layout_below="@id/file_name"
|
||||||
android:layout_centerHorizontal="true"
|
android:layout_centerHorizontal="true"
|
||||||
android:scaleType="centerInside"/>
|
android:scaleType="centerInside"/>
|
||||||
|
|
|
@ -570,10 +570,6 @@ public class ChatEventsAdapter extends ListSelectionAdapter implements ChatMessa
|
||||||
final BitmapWorkerTask bitmapWorkerTask = getBitmapWorkerTask(imageView);
|
final BitmapWorkerTask bitmapWorkerTask = getBitmapWorkerTask(imageView);
|
||||||
if (this == bitmapWorkerTask && imageView != null) {
|
if (this == bitmapWorkerTask && imageView != null) {
|
||||||
imageView.setImageBitmap(bitmap);
|
imageView.setImageBitmap(bitmap);
|
||||||
|
|
||||||
//Force scroll too bottom with setSelection() after image loaded and last messages
|
|
||||||
mFragment.scrollToBottom();
|
|
||||||
|
|
||||||
imageView.setTag(path);
|
imageView.setTag(path);
|
||||||
imageView.setOnClickListener(new View.OnClickListener() {
|
imageView.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue