|
13 | 13 | xmlns:tools="http://schemas.android.com/tools" |
14 | 14 | android:layout_width="match_parent" |
15 | 15 | android:layout_height="wrap_content" |
16 | | - android:layout_marginLeft="16dp" |
| 16 | + android:layout_marginStart="@dimen/zero" |
17 | 17 | android:layout_marginTop="2dp" |
18 | | - android:layout_marginRight="16dp" |
| 18 | + android:layout_marginEnd="@dimen/standard_margin" |
19 | 19 | android:layout_marginBottom="2dp"> |
20 | 20 |
|
21 | 21 | <RelativeLayout |
22 | 22 | android:layout_width="match_parent" |
23 | | - android:layout_height="match_parent" |
| 23 | + android:layout_height="wrap_content" |
24 | 24 | android:layout_alignParentEnd="true" |
25 | 25 | android:layout_marginStart="@dimen/message_outcoming_bubble_margin_left"> |
26 | 26 |
|
27 | 27 | <com.google.android.flexbox.FlexboxLayout |
28 | 28 | android:id="@id/bubble" |
29 | 29 | android:layout_width="match_parent" |
30 | | - android:layout_height="match_parent" |
| 30 | + android:layout_height="wrap_content" |
31 | 31 | app:alignContent="stretch" |
32 | 32 | app:alignItems="stretch" |
33 | 33 | app:flexWrap="wrap" |
|
56 | 56 | <com.google.android.material.button.MaterialButton |
57 | 57 | android:id="@+id/playPauseBtn" |
58 | 58 | 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" |
61 | 61 | android:contentDescription="@string/play_pause_voice_message" |
62 | 62 | android:visibility="visible" |
63 | 63 | app:cornerRadius="@dimen/button_corner_radius" |
|
66 | 66 | app:iconTint="@color/high_emphasis_text" |
67 | 67 | app:rippleColor="#1FFFFFFF" /> |
68 | 68 |
|
69 | | - |
70 | 69 | <com.nextcloud.talk.ui.WaveformSeekBar |
71 | 70 | android:id="@+id/seekbar" |
72 | 71 | android:layout_width="0dp" |
73 | | - android:layout_height="70dp" |
| 72 | + android:layout_height="@dimen/min_size_clickable_area" |
74 | 73 | android:layout_weight="1" |
| 74 | + android:paddingStart="@dimen/standard_half_padding" |
| 75 | + android:paddingTop="@dimen/zero" |
| 76 | + android:paddingEnd="@dimen/standard_half_padding" |
| 77 | + android:paddingBottom="@dimen/zero" |
75 | 78 | android:thumb="@drawable/voice_message_outgoing_seek_bar_slider" |
76 | | - tools:progress="50" /> |
| 79 | + tools:progress="0" /> |
77 | 80 |
|
78 | 81 | <com.nextcloud.talk.ui.PlaybackSpeedControl |
79 | 82 | android:id="@+id/playbackSpeedControlBtn" |
80 | 83 | style="@style/Widget.AppTheme.Button.IconButton" |
81 | 84 | android:layout_width="wrap_content" |
82 | | - android:layout_height="48dp" |
83 | | - android:layout_marginEnd="@dimen/standard_margin" |
| 85 | + android:layout_height="@dimen/min_size_clickable_area" |
84 | 86 | android:contentDescription="@string/playback_speed_control" |
85 | 87 | android:textColor="@color/black" |
86 | 88 | app:cornerRadius="@dimen/button_corner_radius" |
87 | | - app:rippleColor="#1FFFFFFF" /> |
| 89 | + app:rippleColor="#1FFFFFFF" |
| 90 | + tools:text="1,5x" /> |
88 | 91 |
|
89 | 92 | </LinearLayout> |
90 | 93 |
|
|
111 | 114 | android:layout_width="wrap_content" |
112 | 115 | android:layout_height="wrap_content" |
113 | 116 | android:layout_gravity="center" |
114 | | - android:layout_marginStart="8dp" |
| 117 | + android:layout_marginStart="@dimen/standard_half_margin" |
115 | 118 | android:alpha="0.6" |
116 | 119 | android:textColor="@color/no_emphasis_text" |
117 | 120 | tools:text="10:35" /> |
|
121 | 124 | android:layout_width="wrap_content" |
122 | 125 | android:layout_height="@dimen/message_bubble_checkmark_height" |
123 | 126 | android:layout_gravity="center" |
124 | | - android:layout_marginStart="8dp" |
| 127 | + android:layout_marginStart="@dimen/standard_half_margin" |
125 | 128 | android:contentDescription="@null" |
126 | 129 | app:tint="@color/high_emphasis_text" /> |
127 | 130 | </LinearLayout> |
|
0 commit comments