Update small items size

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2019-09-06 10:01:22 +02:00
parent 4973eb622a
commit b100095f69
3 changed files with 6 additions and 5 deletions

View file

@ -179,7 +179,7 @@ public class ConversationItem extends AbstractFlexibleItem<ConversationItem.Conv
DraweeController draweeController = Fresco.newDraweeControllerBuilder()
.setOldController(holder.dialogLastMessageUserAvatar.getController())
.setAutoPlayAnimations(true)
.setImageRequest(DisplayUtils.getImageRequestForUrl(ApiUtils.getUrlForAvatarWithNameForGuests(userEntity.getBaseUrl(), authorDisplayName, R.dimen.small_item_height), userEntity))
.setImageRequest(DisplayUtils.getImageRequestForUrl(ApiUtils.getUrlForAvatarWithNameForGuests(userEntity.getBaseUrl(), authorDisplayName, R.dimen.smaller_item_height), userEntity))
.build();
holder.dialogLastMessageUserAvatar.setController(draweeController);
} else if (conversation.getLastMessage().getActorId().equals(userEntity.getUserId())
@ -190,7 +190,7 @@ public class ConversationItem extends AbstractFlexibleItem<ConversationItem.Conv
DraweeController draweeController = Fresco.newDraweeControllerBuilder()
.setOldController(holder.dialogLastMessageUserAvatar.getController())
.setAutoPlayAnimations(true)
.setImageRequest(DisplayUtils.getImageRequestForUrl(ApiUtils.getUrlForAvatarWithName(userEntity.getBaseUrl(), conversation.getLastMessage().getActorId(), R.dimen.small_item_height), userEntity))
.setImageRequest(DisplayUtils.getImageRequestForUrl(ApiUtils.getUrlForAvatarWithName(userEntity.getBaseUrl(), conversation.getLastMessage().getActorId(), R.dimen.smaller_item_height), userEntity))
.build();
holder.dialogLastMessageUserAvatar.setController(draweeController);
} else {

View file

@ -103,8 +103,8 @@
<com.facebook.drawee.view.SimpleDraweeView
android:id="@id/dialogLastMessageUserAvatar"
android:layout_width="@dimen/small_item_height"
android:layout_height="@dimen/small_item_height"
android:layout_width="@dimen/smaller_item_height"
android:layout_height="@dimen/smaller_item_height"
android:layout_marginEnd="8dp"
android:contentDescription="@null"
app:roundAsCircle="true"

View file

@ -23,7 +23,8 @@
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="item_height">72dp</dimen>
<dimen name="small_item_height">24dp</dimen>
<dimen name="small_item_height">48dp</dimen>
<dimen name="smaller_item_height">24dp</dimen>
<dimen name="rv_item_view_height">48dp</dimen>
<!-- Custom transition dimensions -->