Skip to content

Commit 9435be0

Browse files
style: Use dimens values where applicable/available
Signed-off-by: Andy Scherzinger <[email protected]>
1 parent e69ea4d commit 9435be0

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

app/src/main/res/layout/item_custom_outcoming_voice_message.xml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
xmlns:tools="http://schemas.android.com/tools"
1414
android:layout_width="match_parent"
1515
android:layout_height="wrap_content"
16-
android:layout_marginLeft="16dp"
16+
android:layout_marginStart="@dimen/standard_margin"
1717
android:layout_marginTop="2dp"
18-
android:layout_marginRight="16dp"
18+
android:layout_marginEnd="@dimen/standard_margin"
1919
android:layout_marginBottom="2dp">
2020

2121
<RelativeLayout
@@ -56,8 +56,8 @@
5656
<com.google.android.material.button.MaterialButton
5757
android:id="@+id/playPauseBtn"
5858
style="@style/Widget.AppTheme.Button.IconButton"
59-
android:layout_width="48dp"
60-
android:layout_height="48dp"
59+
android:layout_width="@dimen/min_size_clickable_area"
60+
android:layout_height="@dimen/min_size_clickable_area"
6161
android:contentDescription="@string/play_pause_voice_message"
6262
android:visibility="visible"
6363
app:cornerRadius="@dimen/button_corner_radius"
@@ -79,8 +79,7 @@
7979
android:id="@+id/playbackSpeedControlBtn"
8080
style="@style/Widget.AppTheme.Button.IconButton"
8181
android:layout_width="wrap_content"
82-
android:layout_height="48dp"
83-
android:layout_marginEnd="@dimen/standard_margin"
82+
android:layout_height="@dimen/min_size_clickable_area"
8483
android:contentDescription="@string/playback_speed_control"
8584
android:textColor="@color/black"
8685
app:cornerRadius="@dimen/button_corner_radius"
@@ -111,7 +110,7 @@
111110
android:layout_width="wrap_content"
112111
android:layout_height="wrap_content"
113112
android:layout_gravity="center"
114-
android:layout_marginStart="8dp"
113+
android:layout_marginStart="@dimen/standard_half_margin"
115114
android:alpha="0.6"
116115
android:textColor="@color/no_emphasis_text"
117116
tools:text="10:35" />
@@ -121,7 +120,7 @@
121120
android:layout_width="wrap_content"
122121
android:layout_height="@dimen/message_bubble_checkmark_height"
123122
android:layout_gravity="center"
124-
android:layout_marginStart="8dp"
123+
android:layout_marginStart="@dimen/standard_half_margin"
125124
android:contentDescription="@null"
126125
app:tint="@color/high_emphasis_text" />
127126
</LinearLayout>

0 commit comments

Comments
 (0)