mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-20 23:17:29 +00:00
ca8fecea9c
Did a refactor to better organize the camera flipping code. Also, I wanted to make sure we handle the cases where the user doesn't have two cameras (or no cameras, for that matter). In these cases, we just don't show the appropriate buttons.
48 lines
2.2 KiB
XML
48 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/inCallControls"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
tools:background="@color/textsecure_primary">
|
|
|
|
<org.thoughtcrime.securesms.components.AccessibleToggleButton
|
|
android:id="@+id/speakerButton"
|
|
style="@style/WebRtcCallCompoundButton"
|
|
android:background="@drawable/webrtc_speaker_button"
|
|
tools:checked="true"
|
|
android:layout_marginRight="15dp"/>
|
|
|
|
<org.thoughtcrime.securesms.components.AccessibleToggleButton
|
|
android:id="@+id/bluetoothButton"
|
|
style="@style/WebRtcCallCompoundButton"
|
|
android:background="@drawable/webrtc_bluetooth_button"
|
|
tools:checked="true"
|
|
android:layout_marginRight="15dp"
|
|
android:visibility="gone"/>
|
|
|
|
<org.thoughtcrime.securesms.components.AccessibleToggleButton
|
|
android:id="@+id/muteButton"
|
|
style="@style/WebRtcCallCompoundButton"
|
|
android:background="@drawable/webrtc_mute_button"
|
|
android:contentDescription="@string/redphone_call_controls__mute"
|
|
android:layout_marginRight="15dp"
|
|
tools:checked="false"
|
|
/>
|
|
|
|
<org.thoughtcrime.securesms.components.AccessibleToggleButton
|
|
android:id="@+id/video_mute_button"
|
|
style="@style/WebRtcCallCompoundButton"
|
|
android:layout_marginRight="15dp"
|
|
android:background="@drawable/webrtc_video_mute_button"/>
|
|
|
|
<org.thoughtcrime.securesms.components.AccessibleToggleButton
|
|
android:id="@+id/camera_flip_button"
|
|
style="@style/WebRtcCallCompoundButton"
|
|
android:contentDescription="@string/redphone_call_controls__flip_camera_rear"
|
|
android:background="@drawable/webrtc_camera_rear_button"
|
|
android:visibility="gone"/>
|
|
|
|
</merge>
|