From e31fd8d5788008385f7b8b0615f18ba7c195a3f7 Mon Sep 17 00:00:00 2001 From: Lucio Maciel Date: Tue, 27 Jul 2021 19:37:59 -0300 Subject: [PATCH] Update timer icons and message bubble margins --- .../conversation/ConversationItem.java | 34 ++++--- app/src/main/res/drawable/ic_timer_00_12.xml | 2 +- app/src/main/res/drawable/ic_timer_05_12.xml | 2 +- app/src/main/res/drawable/ic_timer_10_12.xml | 2 +- app/src/main/res/drawable/ic_timer_15_12.xml | 2 +- app/src/main/res/drawable/ic_timer_20_12.xml | 2 +- app/src/main/res/drawable/ic_timer_25_12.xml | 2 +- app/src/main/res/drawable/ic_timer_30_12.xml | 2 +- app/src/main/res/drawable/ic_timer_35_12.xml | 2 +- app/src/main/res/drawable/ic_timer_40_12.xml | 2 +- app/src/main/res/drawable/ic_timer_45_12.xml | 2 +- app/src/main/res/drawable/ic_timer_50_12.xml | 2 +- app/src/main/res/drawable/ic_timer_55_12.xml | 2 +- app/src/main/res/drawable/ic_timer_60_12.xml | 2 +- .../conversation_item_received_multimedia.xml | 95 ++++++++++--------- .../conversation_item_received_text_only.xml | 81 +++++++++------- .../conversation_item_sent_multimedia.xml | 68 +++++++------ .../conversation_item_sent_text_only.xml | 62 +++++++----- app/src/main/res/values/dimens.xml | 6 +- 19 files changed, 212 insertions(+), 160 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationItem.java b/app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationItem.java index 02634faaa8..6e47226c96 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationItem.java +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationItem.java @@ -177,6 +177,7 @@ public final class ConversationItem extends RelativeLayout implements BindableCo protected View replyIcon; @Nullable protected ViewGroup contactPhotoHolder; @Nullable private QuoteView quoteView; + private ViewGroup bodyFooterContainer; private EmojiTextView bodyText; private ConversationItemFooter footer; private ConversationItemFooter stickerFooter; @@ -245,6 +246,7 @@ public final class ConversationItem extends RelativeLayout implements BindableCo this.backgroundDrawable = new ClipProjectionDrawable(Objects.requireNonNull(ContextCompat.getDrawable(getContext(), R.drawable.conversation_item_background))); + this.bodyFooterContainer = findViewById(R.id.conversation_item_body_footer_container); this.bodyText = findViewById(R.id.conversation_item_body); this.footer = findViewById(R.id.conversation_item_footer); this.stickerFooter = findViewById(R.id.conversation_item_sticker_footer); @@ -741,6 +743,8 @@ public final class ConversationItem extends RelativeLayout implements BindableCo { boolean showControls = !messageRecord.isFailed(); + ViewUtil.setTopMargin(bodyText, readDimen(R.dimen.message_bubble_top_padding)); + bodyBubble.setQuoteViewProjection(null); bodyBubble.setVideoPlayerProjection(null); updateSelectedBackgroundDrawableProjections(); @@ -782,7 +786,7 @@ public final class ConversationItem extends RelativeLayout implements BindableCo setSharedContactCorners(messageRecord, previousRecord, nextRecord, isGroupThread); - ViewUtil.updateLayoutParams(bodyText, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); + ViewUtil.updateLayoutParams(bodyFooterContainer, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); ViewUtil.updateLayoutParamsIfNonNull(groupSenderHolder, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); footer.setVisibility(GONE); } else if (hasLinkPreview(messageRecord) && messageRequestAccepted) { @@ -810,20 +814,19 @@ public final class ConversationItem extends RelativeLayout implements BindableCo setThumbnailCorners(messageRecord, previousRecord, nextRecord, isGroupThread); setLinkPreviewCorners(messageRecord, previousRecord, nextRecord, isGroupThread, true); - ViewUtil.updateLayoutParams(bodyText, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); + ViewUtil.updateLayoutParams(bodyFooterContainer, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); ViewUtil.updateLayoutParamsIfNonNull(groupSenderHolder, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); } else { linkPreviewStub.get().setLinkPreview(glideRequests, linkPreview, true); linkPreviewStub.get().setDownloadClickedListener(downloadClickListener); setLinkPreviewCorners(messageRecord, previousRecord, nextRecord, isGroupThread, false); - ViewUtil.updateLayoutParams(bodyText, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); + ViewUtil.updateLayoutParams(bodyFooterContainer, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); ViewUtil.updateLayoutParamsIfNonNull(groupSenderHolder, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); } linkPreviewStub.get().setOnClickListener(linkPreviewClickListener); linkPreviewStub.get().setOnLongClickListener(passthroughClickListener); - footer.setVisibility(VISIBLE); } else if (hasAudio(messageRecord)) { audioViewStub.get().setVisibility(View.VISIBLE); @@ -845,7 +848,7 @@ public final class ConversationItem extends RelativeLayout implements BindableCo Log.w(TAG, "setMediaAttributes: could not register listener for audio slide " + audioViewStub.get().getAudioSlideUri()); } - ViewUtil.updateLayoutParams(bodyText, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); + ViewUtil.updateLayoutParams(bodyFooterContainer, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); ViewUtil.updateLayoutParamsIfNonNull(groupSenderHolder, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); footer.setPlaybackSpeedListener(new AudioPlaybackSpeedToggleListener()); @@ -865,8 +868,9 @@ public final class ConversationItem extends RelativeLayout implements BindableCo documentViewStub.get().setDownloadClickListener(singleDownloadClickListener); documentViewStub.get().setOnLongClickListener(passthroughClickListener); - ViewUtil.updateLayoutParams(bodyText, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); + ViewUtil.updateLayoutParams(bodyFooterContainer, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); ViewUtil.updateLayoutParamsIfNonNull(groupSenderHolder, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); + ViewUtil.setTopMargin(bodyText, 0); footer.setVisibility(VISIBLE); } else if ((hasSticker(messageRecord) && isCaptionlessMms(messageRecord)) || isBorderless(messageRecord)) { @@ -894,7 +898,7 @@ public final class ConversationItem extends RelativeLayout implements BindableCo stickerStub.get().setOnLongClickListener(passthroughClickListener); stickerStub.get().setOnClickListener(passthroughClickListener); - ViewUtil.updateLayoutParams(bodyText, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); + ViewUtil.updateLayoutParams(bodyFooterContainer, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); ViewUtil.updateLayoutParamsIfNonNull(groupSenderHolder, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); footer.setVisibility(VISIBLE); @@ -930,7 +934,7 @@ public final class ConversationItem extends RelativeLayout implements BindableCo setThumbnailCorners(messageRecord, previousRecord, nextRecord, isGroupThread); - ViewUtil.updateLayoutParams(bodyText, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); + ViewUtil.updateLayoutParams(bodyFooterContainer, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); ViewUtil.updateLayoutParamsIfNonNull(groupSenderHolder, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); footer.setVisibility(VISIBLE); @@ -959,10 +963,16 @@ public final class ConversationItem extends RelativeLayout implements BindableCo if (stickerStub.resolved()) stickerStub.get().setVisibility(View.GONE); if (revealableStub.resolved()) revealableStub.get().setVisibility(View.GONE); - ViewUtil.updateLayoutParams(bodyText, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); + ViewUtil.updateLayoutParams(bodyFooterContainer, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); ViewUtil.updateLayoutParamsIfNonNull(groupSenderHolder, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); footer.setVisibility(VISIBLE); + + //noinspection ConstantConditions + int topMargin = !messageRecord.isOutgoing() && isGroupThread && isStartOfMessageCluster(messageRecord, previousRecord, isGroupThread) + ? readDimen(R.dimen.message_bubble_text_only_top_margin) + : readDimen(R.dimen.message_bubble_top_padding); + ViewUtil.setTopMargin(bodyText, topMargin); } } @@ -1124,6 +1134,7 @@ public final class ConversationItem extends RelativeLayout implements BindableCo } private void setQuote(@NonNull MessageRecord current, @NonNull Optional previous, @NonNull Optional next, boolean isGroupThread, @NonNull ChatColors chatColors) { + boolean startOfCluster = isStartOfMessageCluster(current, previous, isGroupThread); if (current.isMms() && !current.isMmsNotification() && ((MediaMmsMessageRecord)current).getQuote() != null) { if (quoteView == null) { throw new AssertionError(); @@ -1145,7 +1156,7 @@ public final class ConversationItem extends RelativeLayout implements BindableCo quoteView.setOnLongClickListener(passthroughClickListener); - if (isStartOfMessageCluster(current, previous, isGroupThread)) { + if (startOfCluster) { if (current.isOutgoing()) { quoteView.setTopCornerSizes(true, true); } else if (isGroupThread) { @@ -1173,8 +1184,9 @@ public final class ConversationItem extends RelativeLayout implements BindableCo quoteView.dismiss(); } + int topMargin = (current.isOutgoing() || !startOfCluster || !groupThread) ? 0 : readDimen(R.dimen.message_bubble_top_image_margin); if (mediaThumbnailStub.resolved()) { - ViewUtil.setTopMargin(mediaThumbnailStub.require(), 0); + ViewUtil.setTopMargin(mediaThumbnailStub.require(), topMargin); } if (linkPreviewStub.resolved()) { diff --git a/app/src/main/res/drawable/ic_timer_00_12.xml b/app/src/main/res/drawable/ic_timer_00_12.xml index de6d32d21f..e9b3f493fa 100644 --- a/app/src/main/res/drawable/ic_timer_00_12.xml +++ b/app/src/main/res/drawable/ic_timer_00_12.xml @@ -5,5 +5,5 @@ android:viewportHeight="12"> + android:pathData="M6.75,6a0.75,0.75 0,0 1,-1.5 0c0,-0.414 0.475,-3.581 0.5,-3.75S5.862,2 6,2s0.226,0.087 0.25,0.25S6.75,5.589 6.75,6ZM5.375,0.625A0.625,0.625 0,1 0,6 0,0.625 0.625,0 0,0 5.375,0.625ZM0,6a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0 6ZM10.75,6a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,10.75 6ZM5.375,11.375A0.625,0.625 0,1 0,6 10.75,0.625 0.625,0 0,0 5.375,11.375ZM2.688,1.345A0.625,0.625 0,1 0,3.313 0.72,0.624 0.624,0 0,0 2.688,1.345ZM0.72,8.687a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0.72 8.687ZM10.03,3.312a0.625,0.625 0,1 0,0.625 -0.624A0.626,0.626 0,0 0,10.03 3.312ZM8.062,10.655a0.625,0.625 0,1 0,0.626 -0.625A0.625,0.625 0,0 0,8.062 10.655ZM0.72,3.312a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0.72 3.312ZM2.688,10.655a0.625,0.625 0,1 0,0.625 -0.625A0.624,0.624 0,0 0,2.688 10.655ZM8.063,1.345A0.625,0.625 0,1 0,8.688 0.72,0.624 0.624,0 0,0 8.063,1.345ZM10.03,8.687a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,10.03 8.687Z"/> diff --git a/app/src/main/res/drawable/ic_timer_05_12.xml b/app/src/main/res/drawable/ic_timer_05_12.xml index b401c124a0..870a7788dc 100644 --- a/app/src/main/res/drawable/ic_timer_05_12.xml +++ b/app/src/main/res/drawable/ic_timer_05_12.xml @@ -5,5 +5,5 @@ android:viewportHeight="12"> + android:pathData="M6.65,6.375a0.75,0.75 0,0 1,-1.3 -0.75c0.208,-0.359 2.2,-2.864 2.308,-3a0.25,0.25 0,0 1,0.434 0.25C8.034,3.022 6.855,6.019 6.65,6.375ZM9.183,1.486A0.5,0.5 0,0 0,9 0.8,6 6,0 0,0 6,0 0.5,0.5 0,0 0,6 1a5,5 0,0 1,2.5 0.668,0.493 0.493,0 0,0 0.25,0.068A0.5,0.5 0,0 0,9.183 1.486ZM0,6a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0 6ZM10.75,6a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,10.75 6ZM5.375,11.375A0.625,0.625 0,1 0,6 10.75,0.625 0.625,0 0,0 5.375,11.375ZM2.688,1.345A0.625,0.625 0,1 0,3.313 0.72,0.624 0.624,0 0,0 2.688,1.345ZM0.72,8.687a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0.72 8.687ZM10.03,3.312a0.625,0.625 0,1 0,0.625 -0.624A0.626,0.626 0,0 0,10.03 3.312ZM8.062,10.655a0.625,0.625 0,1 0,0.626 -0.625A0.625,0.625 0,0 0,8.062 10.655ZM0.72,3.312a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0.72 3.312ZM2.688,10.655a0.625,0.625 0,1 0,0.625 -0.625A0.624,0.624 0,0 0,2.688 10.655ZM10.03,8.687a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,10.03 8.687Z"/> diff --git a/app/src/main/res/drawable/ic_timer_10_12.xml b/app/src/main/res/drawable/ic_timer_10_12.xml index 83bfa77384..02d1679d6c 100644 --- a/app/src/main/res/drawable/ic_timer_10_12.xml +++ b/app/src/main/res/drawable/ic_timer_10_12.xml @@ -5,5 +5,5 @@ android:viewportHeight="12"> + android:pathData="M6.375,6.65a0.75,0.75 0,0 1,-0.75 -1.3c0.359,-0.207 3.339,-1.379 3.5,-1.442A0.245,0.245 0,0 1,9.464 4a0.25,0.25 0,0 1,-0.091 0.342C9.251,4.439 6.731,6.444 6.375,6.65ZM11.014,3.682A0.5,0.5 0,0 0,11.2 3,6.021 6.021,0 0,0 6,0 0.5,0.5 0,0 0,6 1a5.021,5.021 0,0 1,4.331 2.5,0.5 0.5,0 0,0 0.433,0.25A0.49,0.49 0,0 0,11.014 3.682ZM0,6a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0 6ZM10.75,6a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,10.75 6ZM5.375,11.375A0.625,0.625 0,1 0,6 10.75,0.625 0.625,0 0,0 5.375,11.375ZM2.688,1.345A0.625,0.625 0,1 0,3.313 0.72,0.624 0.624,0 0,0 2.688,1.345ZM0.72,8.687a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0.72 8.687ZM8.062,10.655a0.625,0.625 0,1 0,0.626 -0.625A0.625,0.625 0,0 0,8.062 10.655ZM0.72,3.312a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0.72 3.312ZM2.688,10.655a0.625,0.625 0,1 0,0.625 -0.625A0.624,0.624 0,0 0,2.688 10.655ZM10.03,8.687a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,10.03 8.687Z"/> diff --git a/app/src/main/res/drawable/ic_timer_15_12.xml b/app/src/main/res/drawable/ic_timer_15_12.xml index 55b412926c..96a25caac6 100644 --- a/app/src/main/res/drawable/ic_timer_15_12.xml +++ b/app/src/main/res/drawable/ic_timer_15_12.xml @@ -5,5 +5,5 @@ android:viewportHeight="12"> + android:pathData="M6,6.75a0.75,0.75 0,0 1,0 -1.5c0.414,0 3.581,0.475 3.75,0.5S10,5.862 10,6s-0.087,0.226 -0.25,0.25S6.411,6.75 6,6.75ZM12,6A6.006,6.006 0,0 0,6 0,0.5 0.5,0 0,0 6,1a5.006,5.006 0,0 1,5 5,0.5 0.5,0 0,0 1,0ZM0,6a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0 6ZM5.375,11.375A0.625,0.625 0,1 0,6 10.75,0.625 0.625,0 0,0 5.375,11.375ZM2.688,1.345A0.625,0.625 0,1 0,3.313 0.72,0.624 0.624,0 0,0 2.688,1.345ZM0.72,8.687a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0.72 8.687ZM8.062,10.655a0.625,0.625 0,1 0,0.626 -0.625A0.625,0.625 0,0 0,8.062 10.655ZM0.72,3.312a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0.72 3.312ZM2.688,10.655a0.625,0.625 0,1 0,0.625 -0.625A0.624,0.624 0,0 0,2.688 10.655ZM10.03,8.687a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,10.03 8.687Z"/> diff --git a/app/src/main/res/drawable/ic_timer_20_12.xml b/app/src/main/res/drawable/ic_timer_20_12.xml index 9f985f5b27..4e825b8c1f 100644 --- a/app/src/main/res/drawable/ic_timer_20_12.xml +++ b/app/src/main/res/drawable/ic_timer_20_12.xml @@ -5,5 +5,5 @@ android:viewportHeight="12"> + android:pathData="M5.625,6.65a0.75,0.75 0,0 1,0.75 -1.3c0.359,0.208 2.864,2.2 3,2.308a0.25,0.25 0,0 1,-0.25 0.434C8.978,8.034 5.981,6.855 5.625,6.65ZM11.2,9A6,6 0,0 0,6 0,0.5 0.5,0 0,0 6,1a5,5 0,0 1,4.331 7.5A0.5,0.5 0,0 0,11.2 9ZM0,6a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0 6ZM5.375,11.375A0.625,0.625 0,1 0,6 10.75,0.625 0.625,0 0,0 5.375,11.375ZM2.688,1.345A0.625,0.625 0,1 0,3.313 0.72,0.624 0.624,0 0,0 2.688,1.345ZM0.72,8.687a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0.72 8.687ZM8.062,10.655a0.625,0.625 0,1 0,0.626 -0.625A0.625,0.625 0,0 0,8.062 10.655ZM0.72,3.312a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0.72 3.312ZM2.688,10.655a0.625,0.625 0,1 0,0.625 -0.625A0.624,0.624 0,0 0,2.688 10.655Z"/> diff --git a/app/src/main/res/drawable/ic_timer_25_12.xml b/app/src/main/res/drawable/ic_timer_25_12.xml index 7628fab791..175416e6fa 100644 --- a/app/src/main/res/drawable/ic_timer_25_12.xml +++ b/app/src/main/res/drawable/ic_timer_25_12.xml @@ -5,5 +5,5 @@ android:viewportHeight="12"> + android:pathData="M5.35,6.375a0.75,0.75 0,0 1,1.3 -0.75c0.207,0.359 1.379,3.339 1.442,3.5A0.245,0.245 0,0 1,8 9.464a0.25,0.25 0,0 1,-0.342 -0.091C7.561,9.251 5.556,6.731 5.35,6.375ZM9,11.2A6,6 0,0 0,6 0,0.5 0.5,0 0,0 6,1a5,5 0,0 1,2.5 9.332A0.5,0.5 0,1 0,9 11.2ZM0,6a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0 6ZM5.375,11.375A0.625,0.625 0,1 0,6 10.75,0.625 0.625,0 0,0 5.375,11.375ZM2.688,1.345A0.625,0.625 0,1 0,3.313 0.72,0.624 0.624,0 0,0 2.688,1.345ZM0.72,8.687a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0.72 8.687ZM0.72,3.312a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0.72 3.312ZM2.688,10.655a0.625,0.625 0,1 0,0.625 -0.625A0.624,0.624 0,0 0,2.688 10.655Z"/> diff --git a/app/src/main/res/drawable/ic_timer_30_12.xml b/app/src/main/res/drawable/ic_timer_30_12.xml index 13639f7f84..1f239641f3 100644 --- a/app/src/main/res/drawable/ic_timer_30_12.xml +++ b/app/src/main/res/drawable/ic_timer_30_12.xml @@ -5,5 +5,5 @@ android:viewportHeight="12"> + android:pathData="M5.25,6a0.75,0.75 0,0 1,1.5 0c0,0.414 -0.475,3.581 -0.5,3.75S6.138,10 6,10s-0.226,-0.087 -0.25,-0.25S5.25,6.411 5.25,6ZM12,6A6.006,6.006 0,0 0,6 0,0.5 0.5,0 0,0 6,1 5,5 0,0 1,6 11a0.5,0.5 0,0 0,0 1A6.006,6.006 0,0 0,12 6ZM0,6a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0 6ZM2.688,1.345A0.625,0.625 0,1 0,3.313 0.72,0.624 0.624,0 0,0 2.688,1.345ZM0.72,8.687a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0.72 8.687ZM0.72,3.312a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0.72 3.312ZM2.688,10.655a0.625,0.625 0,1 0,0.625 -0.625A0.624,0.624 0,0 0,2.688 10.655Z"/> diff --git a/app/src/main/res/drawable/ic_timer_35_12.xml b/app/src/main/res/drawable/ic_timer_35_12.xml index ff02bad9b4..af28919fd3 100644 --- a/app/src/main/res/drawable/ic_timer_35_12.xml +++ b/app/src/main/res/drawable/ic_timer_35_12.xml @@ -5,5 +5,5 @@ android:viewportHeight="12"> + android:pathData="M5.35,5.625a0.75,0.75 0,1 1,1.3 0.75c-0.208,0.359 -2.2,2.864 -2.308,3a0.25,0.25 0,0 1,-0.434 -0.25C3.966,8.978 5.145,5.981 5.35,5.625ZM12,6A6.006,6.006 0,0 0,6 0,0.5 0.5,0 0,0 6,1a5,5 0,1 1,-2.5 9.332A0.5,0.5 0,1 0,3 11.2,6 6,0 0,0 12,6ZM0,6a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0 6ZM2.688,1.345A0.625,0.625 0,1 0,3.313 0.72,0.624 0.624,0 0,0 2.688,1.345ZM0.72,8.687a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0.72 8.687ZM0.72,3.312a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0.72 3.312Z"/> diff --git a/app/src/main/res/drawable/ic_timer_40_12.xml b/app/src/main/res/drawable/ic_timer_40_12.xml index 4cbcac258b..bbf1ba66e9 100644 --- a/app/src/main/res/drawable/ic_timer_40_12.xml +++ b/app/src/main/res/drawable/ic_timer_40_12.xml @@ -5,5 +5,5 @@ android:viewportHeight="12"> + android:pathData="M5.625,5.35a0.75,0.75 0,1 1,0.75 1.3c-0.359,0.207 -3.339,1.379 -3.5,1.442A0.245,0.245 0,0 1,2.536 8a0.25,0.25 0,0 1,0.091 -0.342C2.749,7.561 5.269,5.556 5.625,5.35ZM0,6a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0 6ZM2.688,1.345A0.625,0.625 0,1 0,3.313 0.72,0.624 0.624,0 0,0 2.688,1.345ZM0.72,3.312a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0.72 3.312ZM12,6A6.006,6.006 0,0 0,6 0,0.5 0.5,0 0,0 6,1 5,5 0,1 1,1.669 8.5,0.5 0.5,0 0,0 0.8,9 6,6 0,0 0,12 6Z"/> diff --git a/app/src/main/res/drawable/ic_timer_45_12.xml b/app/src/main/res/drawable/ic_timer_45_12.xml index 9e868025a2..259ac80c2f 100644 --- a/app/src/main/res/drawable/ic_timer_45_12.xml +++ b/app/src/main/res/drawable/ic_timer_45_12.xml @@ -5,5 +5,5 @@ android:viewportHeight="12"> + android:pathData="M6,5.25a0.75,0.75 0,0 1,0 1.5c-0.414,0 -3.581,-0.475 -3.75,-0.5S2,6.138 2,6s0.087,-0.226 0.25,-0.25S5.589,5.25 6,5.25ZM2.688,1.35A0.625,0.625 0,1 0,3.313 0.72,0.624 0.624,0 0,0 2.688,1.345ZM0.72,3.312a0.625,0.625 0,1 0,0.625 -0.625A0.625,0.625 0,0 0,0.72 3.312ZM12,6A6.006,6.006 0,0 0,6 0,0.5 0.5,0 0,0 6,1 5,5 0,1 1,1 6,0.5 0.5,0 0,0 0,6 6,6 0,0 0,12 6Z"/> diff --git a/app/src/main/res/drawable/ic_timer_50_12.xml b/app/src/main/res/drawable/ic_timer_50_12.xml index 00bf75c4ec..0c077d60ea 100644 --- a/app/src/main/res/drawable/ic_timer_50_12.xml +++ b/app/src/main/res/drawable/ic_timer_50_12.xml @@ -5,5 +5,5 @@ android:viewportHeight="12"> + android:pathData="M6.375,5.35a0.75,0.75 0,1 1,-0.75 1.3c-0.359,-0.208 -2.864,-2.2 -3,-2.308a0.25,0.25 0,0 1,0.25 -0.434C3.022,3.966 6.019,5.145 6.375,5.35ZM2.688,1.35A0.625,0.625 0,1 0,3.313 0.72,0.624 0.624,0 0,0 2.688,1.345ZM12,6A6.006,6.006 0,0 0,6 0,0.5 0.5,0 0,0 6,1 5,5 0,1 1,1.669 3.5,0.5 0.5,0 1,0 0.8,3 6,6 0,1 0,12 6Z"/> diff --git a/app/src/main/res/drawable/ic_timer_55_12.xml b/app/src/main/res/drawable/ic_timer_55_12.xml index bb66f6a4d1..d73255ded6 100644 --- a/app/src/main/res/drawable/ic_timer_55_12.xml +++ b/app/src/main/res/drawable/ic_timer_55_12.xml @@ -5,5 +5,5 @@ android:viewportHeight="12"> + android:pathData="M6.65,5.625a0.75,0.75 0,0 1,-1.3 0.75c-0.207,-0.359 -1.379,-3.339 -1.442,-3.5A0.245,0.245 0,0 1,4 2.536a0.25,0.25 0,0 1,0.342 0.091C4.439,2.749 6.444,5.269 6.65,5.625ZM12,6A6.006,6.006 0,0 0,6 0,0.5 0.5,0 0,0 6,1a5,5 0,1 1,-2.5 0.668A0.5,0.5 0,1 0,3 0.8,6 6,0 1,0 12,6Z"/> diff --git a/app/src/main/res/drawable/ic_timer_60_12.xml b/app/src/main/res/drawable/ic_timer_60_12.xml index 57d3316994..60db4495c6 100644 --- a/app/src/main/res/drawable/ic_timer_60_12.xml +++ b/app/src/main/res/drawable/ic_timer_60_12.xml @@ -5,5 +5,5 @@ android:viewportHeight="12"> + android:pathData="M6.75,6a0.75,0.75 0,0 1,-1.5 0c0,-0.414 0.475,-3.581 0.5,-3.75S5.862,2 6,2s0.226,0.087 0.25,0.25S6.75,5.589 6.75,6ZM12,6a6,6 0,1 0,-6 6A6.006,6.006 0,0 0,12 6ZM11,6A5,5 0,1 1,6 1,5.006 5.006,0 0,1 11,6Z"/> diff --git a/app/src/main/res/layout/conversation_item_received_multimedia.xml b/app/src/main/res/layout/conversation_item_received_multimedia.xml index 12a1167344..8ea41046a4 100644 --- a/app/src/main/res/layout/conversation_item_received_multimedia.xml +++ b/app/src/main/res/layout/conversation_item_received_multimedia.xml @@ -5,14 +5,14 @@ android:id="@+id/conversation_item" android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingEnd="@dimen/conversation_individual_right_gutter" android:clipChildren="false" android:clipToPadding="false" android:focusable="true" android:nextFocusLeft="@+id/conversation_item" android:nextFocusRight="@+id/embedded_text_editor" android:orientation="vertical" - android:paddingStart="8dp"> + android:paddingStart="8dp" + android:paddingEnd="@dimen/conversation_individual_right_gutter"> @@ -70,18 +70,17 @@ android:id="@+id/group_sender_holder" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="3dp" - android:paddingTop="3dp" - android:paddingBottom="3dp" + android:layout_marginTop="7dp" + android:layout_marginBottom="-3dp" + android:orientation="horizontal" android:paddingStart="@dimen/message_bubble_horizontal_padding" android:paddingEnd="@dimen/message_bubble_horizontal_padding" - android:orientation="horizontal" android:visibility="gone" tools:visibility="visible"> - - - + android:orientation="vertical"> + + + + + diff --git a/app/src/main/res/layout/conversation_item_received_text_only.xml b/app/src/main/res/layout/conversation_item_received_text_only.xml index 02523b5bc3..9cbb32f0a6 100644 --- a/app/src/main/res/layout/conversation_item_received_text_only.xml +++ b/app/src/main/res/layout/conversation_item_received_text_only.xml @@ -5,14 +5,14 @@ android:id="@+id/conversation_item" android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingEnd="@dimen/conversation_individual_right_gutter" android:clipChildren="false" android:clipToPadding="false" android:focusable="true" android:nextFocusLeft="@+id/container" android:nextFocusRight="@+id/embedded_text_editor" android:orientation="vertical" - android:paddingStart="8dp"> + android:paddingStart="8dp" + android:paddingEnd="@dimen/conversation_individual_right_gutter"> @@ -70,18 +70,17 @@ android:id="@+id/group_sender_holder" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="3dp" - android:paddingTop="3dp" - android:paddingBottom="3dp" + android:layout_marginTop="7dp" + android:layout_marginBottom="-6dp" + android:orientation="horizontal" android:paddingStart="@dimen/message_bubble_horizontal_padding" android:paddingEnd="@dimen/message_bubble_horizontal_padding" - android:orientation="horizontal" android:visibility="gone" tools:visibility="visible"> - - - + android:orientation="vertical"> + + + + + + diff --git a/app/src/main/res/layout/conversation_item_sent_multimedia.xml b/app/src/main/res/layout/conversation_item_sent_multimedia.xml index 0def05648c..2babb8c01e 100644 --- a/app/src/main/res/layout/conversation_item_sent_multimedia.xml +++ b/app/src/main/res/layout/conversation_item_sent_multimedia.xml @@ -92,7 +92,7 @@ android:layout_marginStart="@dimen/message_bubble_horizontal_padding" android:layout_marginTop="@dimen/message_bubble_top_padding_audio" android:layout_marginEnd="@dimen/message_bubble_horizontal_padding" - android:layout_marginBottom="@dimen/message_bubble_collapsed_footer_padding" + android:layout_marginBottom="@dimen/message_bubble_bottom_padding" android:layout="@layout/conversation_item_sent_audio" /> - - - + android:orientation="vertical"> + + + + + + - - - + android:orientation="vertical"> + + + + + + 2dp 1.5dp 12dp - 6dp + 7dp + 4dp + 4dp 12dp 6dp 32dp - 8dp + 7dp 24dp 24dp 210dp