From 26c9b5166ee16495be3d98d8cf74d1283607d3da Mon Sep 17 00:00:00 2001 From: Lucio Maciel Date: Wed, 21 Jul 2021 14:11:27 -0300 Subject: [PATCH] Update timer icons and received text bubble. --- .../conversation/ConversationItem.java | 5 +-- 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 | 32 +++++++++---------- .../conversation_item_received_text_only.xml | 21 ++++++------ app/src/main/res/values/dimens.xml | 5 +-- 17 files changed, 44 insertions(+), 45 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 3f7c79bcb..08105368a 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationItem.java +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/ConversationItem.java @@ -1172,12 +1172,13 @@ public final class ConversationItem extends RelativeLayout implements BindableCo quoteView.dismiss(); } + int topMargin = current.isOutgoing() ? 0 : readDimen(R.dimen.message_bubble_content_top_padding); if (mediaThumbnailStub.resolved()) { - ViewUtil.setTopMargin(mediaThumbnailStub.get(), 0); + ViewUtil.setTopMargin(mediaThumbnailStub.get(), topMargin); } if (linkPreviewStub.resolved()) { - ViewUtil.setTopMargin(linkPreviewStub.get(), 0); + ViewUtil.setTopMargin(linkPreviewStub.get(), topMargin); } } } 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 de6d32d21..e9b3f493f 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 b401c124a..870a7788d 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 83bfa7738..02d1679d6 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 55b412926..96a25caac 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 9f985f5b2..4e825b8c1 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 7628fab79..175416e6f 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 13639f7f8..1f239641f 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 ff02bad9b..af28919fd 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 4cbcac258..bbf1ba66e 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 9e868025a..259ac80c2 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 00bf75c4e..0c077d60e 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 bb66f6a4d..d73255ded 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 57d331699..60db4495c 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 12a116734..d4c494211 100644 --- a/app/src/main/res/layout/conversation_item_received_multimedia.xml +++ b/app/src/main/res/layout/conversation_item_received_multimedia.xml @@ -60,6 +60,7 @@ android:layout_marginStart="8dp" android:layout_marginEnd="@dimen/message_bubble_edge_margin" android:layout_toEndOf="@id/contact_photo_container" + android:paddingTop="@dimen/message_bubble_top_padding" android:background="@color/white" android:clipChildren="false" android:clipToPadding="false" @@ -70,21 +71,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:paddingStart="@dimen/message_bubble_horizontal_padding" - android:paddingEnd="@dimen/message_bubble_horizontal_padding" + android:layout_marginStart="@dimen/message_bubble_horizontal_padding" + android:layout_marginEnd="@dimen/message_bubble_horizontal_padding" android:orientation="horizontal" android:visibility="gone" tools:visibility="visible"> + android:layout="@layout/conversation_item_received_thumbnail" + android:layout_marginTop="@dimen/message_bubble_content_top_padding" /> + android:layout="@layout/conversation_item_received_sticker" + android:layout_marginTop="@dimen/message_bubble_content_top_padding" /> + android:layout="@layout/conversation_item_received_link_preview" + android:layout_marginTop="@dimen/message_bubble_content_top_padding" /> @@ -148,7 +148,7 @@ android:layout_width="210dp" android:layout_height="wrap_content" android:layout_marginStart="@dimen/message_bubble_horizontal_padding" - android:layout_marginTop="@dimen/message_bubble_top_padding" + android:layout_marginTop="@dimen/message_bubble_content_top_padding" android:layout_marginEnd="@dimen/message_bubble_horizontal_padding" android:layout_marginBottom="@dimen/message_bubble_collapsed_footer_padding" android:layout="@layout/conversation_item_received_document" /> @@ -158,7 +158,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/message_bubble_horizontal_padding" - android:layout_marginTop="@dimen/message_bubble_top_padding" + android:layout_marginTop="@dimen/message_bubble_content_top_padding" android:layout_marginEnd="@dimen/message_bubble_horizontal_padding" android:layout_marginBottom="@dimen/message_bubble_collapsed_footer_padding" android:layout="@layout/conversation_item_received_revealable" /> @@ -169,7 +169,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/message_bubble_horizontal_padding" - android:layout_marginTop="@dimen/message_bubble_top_padding" + android:layout_marginTop="@dimen/message_bubble_content_top_padding" android:layout_marginEnd="@dimen/message_bubble_horizontal_padding" android:layout_marginBottom="@dimen/message_bubble_collapsed_footer_padding" android:ellipsize="end" 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 02523b5bc..6cf93afc4 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 @@ -27,7 +27,8 @@ android:id="@+id/reply_icon" android:layout_width="@dimen/conversation_item_reply_size" android:layout_height="@dimen/conversation_item_reply_size" - android:padding="9dp" + android:paddingStart="9dp" + android:paddingEnd="9dp" android:tint="@color/signal_icon_tint_primary" android:layout_gravity="center" app:srcCompat="@drawable/ic_reply_24" /> @@ -70,21 +71,18 @@ 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:paddingStart="@dimen/message_bubble_horizontal_padding" - android:paddingEnd="@dimen/message_bubble_horizontal_padding" + android:layout_marginTop="@dimen/message_bubble_top_padding" + android:layout_marginStart="@dimen/message_bubble_horizontal_padding" + android:layout_marginEnd="@dimen/message_bubble_horizontal_padding" android:orientation="horizontal" android:visibility="gone" tools:visibility="visible"> 2dp 1.5dp 12dp - 6dp + 7dp + 4dp 12dp 6dp 32dp - 8dp + 7dp 24dp 24dp 210dp