Downsize buttons to 48dp on call screen on very narrow devices.
This commit is contained in:
parent
2f3c7097a9
commit
7551dd77c5
4 changed files with 14 additions and 12 deletions
|
@ -210,8 +210,8 @@
|
|||
|
||||
<org.thoughtcrime.securesms.components.webrtc.WebRtcAudioOutputToggleButton
|
||||
android:id="@+id/call_screen_speaker_toggle"
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="56dp"
|
||||
android:layout_width="@dimen/webrtc_button_size"
|
||||
android:layout_height="@dimen/webrtc_button_size"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
|
@ -248,8 +248,8 @@
|
|||
|
||||
<ImageView
|
||||
android:id="@+id/call_screen_camera_direction_toggle"
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="56dp"
|
||||
android:layout_width="@dimen/webrtc_button_size"
|
||||
android:layout_height="@dimen/webrtc_button_size"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
|
@ -369,8 +369,7 @@
|
|||
app:layout_constraintBottom_toTopOf="@id/call_screen_button_labels_barrier"
|
||||
app:layout_constraintEnd_toStartOf="@id/call_screen_end_call"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
app:layout_constraintStart_toEndOf="@id/call_screen_audio_mic_toggle"
|
||||
tools:visibility="visible" />
|
||||
app:layout_constraintStart_toEndOf="@id/call_screen_audio_mic_toggle" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/call_screen_audio_ring_toggle_label"
|
||||
|
@ -390,13 +389,12 @@
|
|||
app:layout_constraintEnd_toEndOf="@id/call_screen_audio_ring_toggle"
|
||||
app:layout_constraintStart_toStartOf="@id/call_screen_audio_ring_toggle"
|
||||
app:layout_constraintTop_toBottomOf="@id/call_screen_audio_ring_toggle"
|
||||
app:layout_constraintVertical_bias="0"
|
||||
tools:visibility="visible" />
|
||||
app:layout_constraintVertical_bias="0" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/call_screen_end_call"
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="56dp"
|
||||
android:layout_width="@dimen/webrtc_button_size"
|
||||
android:layout_height="@dimen/webrtc_button_size"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
|
|
|
@ -32,4 +32,6 @@
|
|||
<dimen name="toolbar_avatar_margin">34dp</dimen>
|
||||
|
||||
<dimen name="verify_identity_vertical_margin">32dp</dimen>
|
||||
|
||||
<dimen name="webrtc_button_size">56dp</dimen>
|
||||
</resources>
|
|
@ -212,4 +212,6 @@
|
|||
<dimen name="verify_identity_vertical_margin">16dp</dimen>
|
||||
|
||||
<dimen name="signal_context_menu_corner_radius">18dp</dimen>
|
||||
|
||||
<dimen name="webrtc_button_size">48dp</dimen>
|
||||
</resources>
|
||||
|
|
|
@ -308,8 +308,8 @@
|
|||
</style>
|
||||
|
||||
<style name="WebRtcCallV2CompoundButton">
|
||||
<item name="android:layout_height">56dp</item>
|
||||
<item name="android:layout_width">56dp</item>
|
||||
<item name="android:layout_height">@dimen/webrtc_button_size</item>
|
||||
<item name="android:layout_width">@dimen/webrtc_button_size</item>
|
||||
<item name="android:textOn">@null</item>
|
||||
<item name="android:textOff">@null</item>
|
||||
</style>
|
||||
|
|
Loading…
Add table
Reference in a new issue