mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-26 23:25:20 +03:00
Update small items size
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
4973eb622a
commit
b100095f69
3 changed files with 6 additions and 5 deletions
|
@ -179,7 +179,7 @@ public class ConversationItem extends AbstractFlexibleItem<ConversationItem.Conv
|
||||||
DraweeController draweeController = Fresco.newDraweeControllerBuilder()
|
DraweeController draweeController = Fresco.newDraweeControllerBuilder()
|
||||||
.setOldController(holder.dialogLastMessageUserAvatar.getController())
|
.setOldController(holder.dialogLastMessageUserAvatar.getController())
|
||||||
.setAutoPlayAnimations(true)
|
.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();
|
.build();
|
||||||
holder.dialogLastMessageUserAvatar.setController(draweeController);
|
holder.dialogLastMessageUserAvatar.setController(draweeController);
|
||||||
} else if (conversation.getLastMessage().getActorId().equals(userEntity.getUserId())
|
} else if (conversation.getLastMessage().getActorId().equals(userEntity.getUserId())
|
||||||
|
@ -190,7 +190,7 @@ public class ConversationItem extends AbstractFlexibleItem<ConversationItem.Conv
|
||||||
DraweeController draweeController = Fresco.newDraweeControllerBuilder()
|
DraweeController draweeController = Fresco.newDraweeControllerBuilder()
|
||||||
.setOldController(holder.dialogLastMessageUserAvatar.getController())
|
.setOldController(holder.dialogLastMessageUserAvatar.getController())
|
||||||
.setAutoPlayAnimations(true)
|
.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();
|
.build();
|
||||||
holder.dialogLastMessageUserAvatar.setController(draweeController);
|
holder.dialogLastMessageUserAvatar.setController(draweeController);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -103,8 +103,8 @@
|
||||||
|
|
||||||
<com.facebook.drawee.view.SimpleDraweeView
|
<com.facebook.drawee.view.SimpleDraweeView
|
||||||
android:id="@id/dialogLastMessageUserAvatar"
|
android:id="@id/dialogLastMessageUserAvatar"
|
||||||
android:layout_width="@dimen/small_item_height"
|
android:layout_width="@dimen/smaller_item_height"
|
||||||
android:layout_height="@dimen/small_item_height"
|
android:layout_height="@dimen/smaller_item_height"
|
||||||
android:layout_marginEnd="8dp"
|
android:layout_marginEnd="8dp"
|
||||||
android:contentDescription="@null"
|
android:contentDescription="@null"
|
||||||
app:roundAsCircle="true"
|
app:roundAsCircle="true"
|
||||||
|
|
|
@ -23,7 +23,8 @@
|
||||||
<dimen name="activity_horizontal_margin">16dp</dimen>
|
<dimen name="activity_horizontal_margin">16dp</dimen>
|
||||||
|
|
||||||
<dimen name="item_height">72dp</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>
|
<dimen name="rv_item_view_height">48dp</dimen>
|
||||||
|
|
||||||
<!-- Custom transition dimensions -->
|
<!-- Custom transition dimensions -->
|
||||||
|
|
Loading…
Reference in a new issue