Layout improvements
This commit is contained in:
parent
5c3b79abee
commit
d6cd6af645
6 changed files with 149 additions and 152 deletions
|
@ -3,7 +3,9 @@
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
|
||||||
<data>
|
<data>
|
||||||
|
|
||||||
<import type="android.view.View" />
|
<import type="android.view.View" />
|
||||||
|
|
||||||
<variable
|
<variable
|
||||||
name="viewModel"
|
name="viewModel"
|
||||||
type="org.linphone.activities.voip.viewmodels.ControlsViewModel" />
|
type="org.linphone.activities.voip.viewmodels.ControlsViewModel" />
|
||||||
|
@ -27,7 +29,7 @@
|
||||||
app:layout_constraintDimensionRatio="W,1.26:1"
|
app:layout_constraintDimensionRatio="W,1.26:1"
|
||||||
app:layout_constraintEnd_toStartOf="@id/answer"
|
app:layout_constraintEnd_toStartOf="@id/answer"
|
||||||
app:layout_constraintHorizontal_chainStyle="packed"
|
app:layout_constraintHorizontal_chainStyle="packed"
|
||||||
app:layout_constraintStart_toStartOf="parent"/>
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/answer"
|
android:id="@+id/answer"
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
|
||||||
<data>
|
<data>
|
||||||
|
|
||||||
<import type="android.view.View" />
|
<import type="android.view.View" />
|
||||||
|
|
||||||
<variable
|
<variable
|
||||||
name="controlsViewModel"
|
name="controlsViewModel"
|
||||||
type="org.linphone.activities.voip.viewmodels.ControlsViewModel" />
|
type="org.linphone.activities.voip.viewmodels.ControlsViewModel" />
|
||||||
|
@ -24,7 +26,7 @@
|
||||||
android:src="@drawable/icon_call_hangup"
|
android:src="@drawable/icon_call_hangup"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintDimensionRatio="W,1.26:1"
|
app:layout_constraintDimensionRatio="W,1.26:1"
|
||||||
app:layout_constraintStart_toStartOf="parent"/>
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/microphone"
|
android:id="@+id/microphone"
|
||||||
|
@ -42,7 +44,7 @@
|
||||||
app:layout_constraintDimensionRatio="W,1:1"
|
app:layout_constraintDimensionRatio="W,1:1"
|
||||||
app:layout_constraintEnd_toStartOf="@id/speaker"
|
app:layout_constraintEnd_toStartOf="@id/speaker"
|
||||||
app:layout_constraintHorizontal_chainStyle="packed"
|
app:layout_constraintHorizontal_chainStyle="packed"
|
||||||
app:layout_constraintStart_toStartOf="@id/hangup"/>
|
app:layout_constraintStart_toStartOf="@id/hangup" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/speaker"
|
android:id="@+id/speaker"
|
||||||
|
@ -58,7 +60,7 @@
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintDimensionRatio="W,1:1"
|
app:layout_constraintDimensionRatio="W,1:1"
|
||||||
app:layout_constraintEnd_toEndOf="@id/numpad"
|
app:layout_constraintEnd_toEndOf="@id/numpad"
|
||||||
app:layout_constraintStart_toEndOf="@id/microphone"/>
|
app:layout_constraintStart_toEndOf="@id/microphone" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/numpad"
|
android:id="@+id/numpad"
|
||||||
|
@ -72,7 +74,7 @@
|
||||||
android:visibility="@{controlsViewModel.isOutgoingEarlyMedia ? View.VISIBLE : View.GONE, default=gone}"
|
android:visibility="@{controlsViewModel.isOutgoingEarlyMedia ? View.VISIBLE : View.GONE, default=gone}"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintDimensionRatio="W,1:1"
|
app:layout_constraintDimensionRatio="W,1:1"
|
||||||
app:layout_constraintEnd_toEndOf="parent"/>
|
app:layout_constraintEnd_toEndOf="parent" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
|
|
@ -3,10 +3,13 @@
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
|
||||||
<data>
|
<data>
|
||||||
|
|
||||||
<import type="android.view.View" />
|
<import type="android.view.View" />
|
||||||
|
|
||||||
<variable
|
<variable
|
||||||
name="callsViewModel"
|
name="callsViewModel"
|
||||||
type="org.linphone.activities.voip.viewmodels.CallsViewModel" />
|
type="org.linphone.activities.voip.viewmodels.CallsViewModel" />
|
||||||
|
|
||||||
<variable
|
<variable
|
||||||
name="controlsViewModel"
|
name="controlsViewModel"
|
||||||
type="org.linphone.activities.voip.viewmodels.ControlsViewModel" />
|
type="org.linphone.activities.voip.viewmodels.ControlsViewModel" />
|
||||||
|
|
|
@ -3,10 +3,13 @@
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
|
||||||
<data>
|
<data>
|
||||||
|
|
||||||
<import type="android.view.View" />
|
<import type="android.view.View" />
|
||||||
|
|
||||||
<variable
|
<variable
|
||||||
name="callsViewModel"
|
name="callsViewModel"
|
||||||
type="org.linphone.activities.voip.viewmodels.CallsViewModel" />
|
type="org.linphone.activities.voip.viewmodels.CallsViewModel" />
|
||||||
|
|
||||||
<variable
|
<variable
|
||||||
name="controlsViewModel"
|
name="controlsViewModel"
|
||||||
type="org.linphone.activities.voip.viewmodels.ControlsViewModel" />
|
type="org.linphone.activities.voip.viewmodels.ControlsViewModel" />
|
||||||
|
@ -103,7 +106,7 @@
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintWidth_max="350dp" />
|
app:layout_constraintWidth_max="@dimen/voip_buttons_max_width" />
|
||||||
|
|
||||||
<ViewStub
|
<ViewStub
|
||||||
android:id="@+id/stub_numpad"
|
android:id="@+id/stub_numpad"
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
|
||||||
<data>
|
<data>
|
||||||
|
|
||||||
<import type="android.view.View" />
|
<import type="android.view.View" />
|
||||||
|
|
||||||
<variable
|
<variable
|
||||||
name="data"
|
name="data"
|
||||||
type="org.linphone.activities.voip.data.ConferenceParticipantDeviceData" />
|
type="org.linphone.activities.voip.data.ConferenceParticipantDeviceData" />
|
||||||
|
@ -14,91 +16,81 @@
|
||||||
android:layout_height="@dimen/voip_active_speaker_miniature_size"
|
android:layout_height="@dimen/voip_active_speaker_miniature_size"
|
||||||
android:layout_marginStart="5dp"
|
android:layout_marginStart="5dp"
|
||||||
android:layout_marginEnd="5dp"
|
android:layout_marginEnd="5dp"
|
||||||
app:layout_flexShrink="0"
|
android:background="@{!data.isInConference ? @drawable/shape_remote_paused_background : data.videoEnabled ? @drawable/shape_remote_video_background : @drawable/shape_remote_background, default=@drawable/shape_remote_background}"
|
||||||
app:layout_alignSelf="flex_end">
|
app:layout_alignSelf="flex_end"
|
||||||
|
app:layout_flexShrink="0">
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<include
|
||||||
android:layout_width="0dp"
|
layout="@layout/voip_contact_avatar"
|
||||||
android:layout_height="0dp"
|
android:layout_width="@dimen/voip_conference_active_speaker_miniature_avatar_size"
|
||||||
android:background="@{!data.isInConference ? @drawable/shape_remote_paused_background : data.videoEnabled ? @drawable/shape_remote_video_background : @drawable/shape_remote_background, default=@drawable/shape_remote_background}"
|
android:layout_height="@dimen/voip_conference_active_speaker_miniature_avatar_size"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
android:visibility="@{data.videoEnabled || !data.isInConference ? View.GONE : View.VISIBLE, default=gone}"
|
||||||
|
app:data="@{data}"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent">
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<include
|
|
||||||
android:layout_width="@dimen/voip_conference_active_speaker_miniature_avatar_size"
|
|
||||||
android:layout_height="@dimen/voip_conference_active_speaker_miniature_avatar_size"
|
|
||||||
android:visibility="@{data.videoEnabled || !data.isInConference ? View.GONE : View.VISIBLE, default=gone}"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:data="@{data}"
|
|
||||||
layout="@layout/voip_contact_avatar" />
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
|
|
||||||
<org.linphone.activities.voip.views.RoundCornersTextureView
|
<org.linphone.activities.voip.views.RoundCornersTextureView
|
||||||
android:id="@+id/participant_video_surface"
|
android:id="@+id/participant_video_surface"
|
||||||
android:visibility="@{data.videoEnabled && data.isInConference ? View.VISIBLE : View.GONE}"
|
|
||||||
participantTextureView="@{data}"
|
participantTextureView="@{data}"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
|
android:visibility="@{data.videoEnabled && data.isInConference ? View.VISIBLE : View.GONE}"
|
||||||
app:alignTopRight="false"
|
app:alignTopRight="false"
|
||||||
app:displayMode="hybrid"
|
app:displayMode="hybrid"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:visibility="@{data.isInConference ? View.GONE : View.VISIBLE, default=gone}"
|
|
||||||
android:layout_width="@dimen/voip_conference_active_speaker_miniature_avatar_size"
|
android:layout_width="@dimen/voip_conference_active_speaker_miniature_avatar_size"
|
||||||
android:layout_height="@dimen/voip_conference_active_speaker_miniature_avatar_size"
|
android:layout_height="@dimen/voip_conference_active_speaker_miniature_avatar_size"
|
||||||
android:src="@drawable/icon_pause"
|
|
||||||
android:background="@drawable/shape_button_background"
|
android:background="@drawable/shape_button_background"
|
||||||
android:contentDescription="@string/content_description_participant_is_paused"
|
android:contentDescription="@string/content_description_participant_is_paused"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
android:src="@drawable/icon_pause"
|
||||||
|
android:visibility="@{data.isInConference ? View.GONE : View.VISIBLE, default=gone}"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:onClick="@{() -> data.switchCamera()}"
|
|
||||||
android:visibility="@{data.videoEnabled && data.isSwitchCameraAvailable() && data.isInConference ? View.VISIBLE : View.GONE, default=gone}"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="5dp"
|
android:layout_margin="5dp"
|
||||||
|
android:contentDescription="@string/content_description_switch_camera"
|
||||||
|
android:onClick="@{() -> data.switchCamera()}"
|
||||||
android:padding="5dp"
|
android:padding="5dp"
|
||||||
android:src="@drawable/icon_call_camera_switch"
|
android:src="@drawable/icon_call_camera_switch"
|
||||||
android:contentDescription="@string/content_description_switch_camera"
|
android:visibility="@{data.videoEnabled && data.isSwitchCameraAvailable() && data.isInConference ? View.VISIBLE : View.GONE, default=gone}"
|
||||||
app:layout_constraintTop_toTopOf="@id/participant_video_surface"
|
app:layout_constraintEnd_toEndOf="@id/participant_video_surface"
|
||||||
app:layout_constraintEnd_toEndOf="@id/participant_video_surface"/>
|
app:layout_constraintTop_toTopOf="@id/participant_video_surface" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:visibility="@{data.activeSpeaker ? View.VISIBLE : View.GONE, default=gone}"
|
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
|
android:contentDescription="@null"
|
||||||
|
android:src="@drawable/shape_conference_active_speaker_border"
|
||||||
|
android:visibility="@{data.activeSpeaker ? View.VISIBLE : View.GONE, default=gone}"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintLeft_toLeftOf="parent"
|
||||||
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
android:src="@drawable/shape_conference_active_speaker_border"
|
|
||||||
android:contentDescription="@null"/>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/participant_name"
|
android:id="@+id/participant_name"
|
||||||
android:text="@{data.contact.fullName ?? data.displayName}"
|
|
||||||
style="@style/call_remote_name_font"
|
style="@style/call_remote_name_font"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="5dp"
|
|
||||||
android:layout_marginStart="5dp"
|
android:layout_marginStart="5dp"
|
||||||
android:layout_marginEnd="5dp"
|
android:layout_marginEnd="5dp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
android:layout_marginBottom="5dp"
|
||||||
|
android:text="@{data.contact.fullName ?? data.displayName}"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"/>
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
|
|
||||||
<!--<TextView
|
<!--<TextView
|
||||||
android:visibility="@{data.isInConference ? View.GONE : View.VISIBLE, default=gone}"
|
android:visibility="@{data.isInConference ? View.GONE : View.VISIBLE, default=gone}"
|
||||||
|
@ -114,14 +106,14 @@
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="@dimen/voip_conference_participant_mic_muted_icon_size"
|
android:layout_width="@dimen/voip_conference_participant_mic_muted_icon_size"
|
||||||
android:layout_height="@dimen/voip_conference_participant_mic_muted_icon_size"
|
android:layout_height="@dimen/voip_conference_participant_mic_muted_icon_size"
|
||||||
android:visibility="@{data.micMuted ? View.VISIBLE : View.GONE, default=gone}"
|
|
||||||
android:padding="5dp"
|
|
||||||
android:layout_margin="5dp"
|
android:layout_margin="5dp"
|
||||||
android:background="@drawable/shape_button_disabled_background"
|
android:background="@drawable/shape_button_disabled_background"
|
||||||
android:src="@drawable/icon_mic_muted"
|
|
||||||
android:contentDescription="@string/content_description_conference_participant_mic_muted"
|
android:contentDescription="@string/content_description_conference_participant_mic_muted"
|
||||||
|
android:padding="5dp"
|
||||||
|
android:src="@drawable/icon_mic_muted"
|
||||||
|
android:visibility="@{data.micMuted ? View.VISIBLE : View.GONE, default=gone}"
|
||||||
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintLeft_toLeftOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"/>
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
|
|
@ -3,123 +3,118 @@
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
|
||||||
<data>
|
<data>
|
||||||
|
|
||||||
<import type="android.view.View" />
|
<import type="android.view.View" />
|
||||||
|
|
||||||
<variable
|
<variable
|
||||||
name="data"
|
name="data"
|
||||||
type="org.linphone.activities.voip.data.ConferenceParticipantDeviceData" />
|
type="org.linphone.activities.voip.data.ConferenceParticipantDeviceData" />
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="match_parent"
|
||||||
android:padding="5dp">
|
android:background="@{!data.isInConference ? @drawable/shape_remote_paused_background : data.videoEnabled ? @drawable/shape_remote_video_background : @drawable/shape_remote_background, default=@drawable/shape_remote_background}"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintDimensionRatio="1:1"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<include
|
||||||
android:layout_width="match_parent"
|
layout="@layout/voip_contact_avatar"
|
||||||
android:layout_height="match_parent"
|
android:layout_width="0dp"
|
||||||
android:background="@{!data.isInConference ? @drawable/shape_remote_paused_background : data.videoEnabled ? @drawable/shape_remote_video_background : @drawable/shape_remote_background, default=@drawable/shape_remote_background}"
|
android:layout_height="0dp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
android:layout_margin="30dp"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
android:visibility="@{data.videoEnabled || !data.isInConference ? View.GONE : View.VISIBLE, default=gone}"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:data="@{data}"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintDimensionRatio="1:1">
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintHeight_max="200dp"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<include
|
<org.linphone.activities.voip.views.RoundCornersTextureView
|
||||||
android:layout_width="0dp"
|
android:id="@+id/participant_video_surface"
|
||||||
android:layout_height="0dp"
|
participantTextureView="@{data}"
|
||||||
android:layout_margin="30dp"
|
android:layout_width="0dp"
|
||||||
android:visibility="@{data.videoEnabled || !data.isInConference ? View.GONE : View.VISIBLE, default=gone}"
|
android:layout_height="0dp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
android:visibility="@{data.videoEnabled && data.isInConference ? View.VISIBLE : View.GONE}"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:alignTopRight="false"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:displayMode="hybrid"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintHeight_max="200dp"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:data="@{data}"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
layout="@layout/voip_contact_avatar" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<org.linphone.activities.voip.views.RoundCornersTextureView
|
<ImageView
|
||||||
android:id="@+id/participant_video_surface"
|
android:layout_width="wrap_content"
|
||||||
android:visibility="@{data.videoEnabled && data.isInConference ? View.VISIBLE : View.GONE}"
|
android:layout_height="wrap_content"
|
||||||
participantTextureView="@{data}"
|
android:background="@drawable/shape_button_background"
|
||||||
android:layout_width="0dp"
|
android:contentDescription="@string/content_description_participant_is_paused"
|
||||||
android:layout_height="0dp"
|
android:src="@drawable/icon_pause"
|
||||||
app:alignTopRight="false"
|
android:visibility="@{data.isInConference ? View.GONE : View.VISIBLE, default=gone}"
|
||||||
app:displayMode="hybrid"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
app:layout_constraintEnd_toEndOf="parent" />
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:visibility="@{data.isInConference ? View.GONE : View.VISIBLE, default=gone}"
|
android:layout_width="0dp"
|
||||||
android:layout_width="wrap_content"
|
android:layout_height="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:adjustViewBounds="true"
|
||||||
android:src="@drawable/icon_pause"
|
android:contentDescription="@null"
|
||||||
android:background="@drawable/shape_button_background"
|
android:src="@drawable/shape_conference_active_speaker_border"
|
||||||
android:contentDescription="@string/content_description_participant_is_paused"
|
android:visibility="@{data.activeSpeaker ? View.VISIBLE : View.GONE, default=gone}"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintLeft_toLeftOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"/>
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<ImageView
|
<TextView
|
||||||
android:visibility="@{data.activeSpeaker ? View.VISIBLE : View.GONE, default=gone}"
|
android:id="@+id/participant_name"
|
||||||
android:layout_width="0dp"
|
style="@style/call_remote_name_font"
|
||||||
android:layout_height="0dp"
|
android:layout_width="wrap_content"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
android:layout_height="wrap_content"
|
||||||
app:layout_constraintLeft_toLeftOf="parent"
|
android:layout_marginStart="10dp"
|
||||||
app:layout_constraintRight_toRightOf="parent"
|
android:layout_marginBottom="10dp"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
android:text="@{data.contact.fullName ?? data.displayName}"
|
||||||
android:src="@drawable/shape_conference_active_speaker_border"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
android:adjustViewBounds="true"
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
android:contentDescription="@null"/>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/participant_name"
|
style="@style/call_remote_name_font"
|
||||||
android:text="@{data.contact.fullName ?? data.displayName}"
|
android:layout_width="wrap_content"
|
||||||
style="@style/call_remote_name_font"
|
android:layout_height="wrap_content"
|
||||||
android:layout_width="wrap_content"
|
android:layout_marginStart="5dp"
|
||||||
android:layout_height="wrap_content"
|
android:text="@string/conference_participant_paused"
|
||||||
android:layout_marginBottom="10dp"
|
android:visibility="@{data.isInConference ? View.GONE : View.VISIBLE, default=gone}"
|
||||||
android:layout_marginStart="10dp"
|
app:layout_constraintBottom_toBottomOf="@id/participant_name"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toEndOf="@id/participant_name" />
|
||||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
|
||||||
|
|
||||||
<TextView
|
<ImageView
|
||||||
android:visibility="@{data.isInConference ? View.GONE : View.VISIBLE, default=gone}"
|
android:layout_width="wrap_content"
|
||||||
android:text="@string/conference_participant_paused"
|
android:layout_height="wrap_content"
|
||||||
style="@style/call_remote_name_font"
|
android:layout_margin="5dp"
|
||||||
android:layout_width="wrap_content"
|
android:contentDescription="@string/content_description_switch_camera"
|
||||||
android:layout_height="wrap_content"
|
android:onClick="@{() -> data.switchCamera()}"
|
||||||
android:layout_marginStart="5dp"
|
android:padding="5dp"
|
||||||
app:layout_constraintStart_toEndOf="@id/participant_name"
|
android:src="@drawable/icon_call_camera_switch"
|
||||||
app:layout_constraintBottom_toBottomOf="@id/participant_name"/>
|
android:visibility="@{data.videoEnabled && data.isSwitchCameraAvailable() && data.isInConference ? View.VISIBLE : View.GONE, default=gone}"
|
||||||
|
app:layout_constraintRight_toRightOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:onClick="@{() -> data.switchCamera()}"
|
android:layout_width="@dimen/voip_conference_participant_mic_muted_icon_size"
|
||||||
android:visibility="@{data.videoEnabled && data.isSwitchCameraAvailable() && data.isInConference ? View.VISIBLE : View.GONE, default=gone}"
|
android:layout_height="@dimen/voip_conference_participant_mic_muted_icon_size"
|
||||||
android:layout_width="wrap_content"
|
android:layout_margin="5dp"
|
||||||
android:layout_height="wrap_content"
|
android:background="@drawable/shape_button_disabled_background"
|
||||||
android:layout_margin="5dp"
|
android:contentDescription="@string/content_description_conference_participant_mic_muted"
|
||||||
android:padding="5dp"
|
android:padding="5dp"
|
||||||
android:src="@drawable/icon_call_camera_switch"
|
android:src="@drawable/icon_mic_muted"
|
||||||
android:contentDescription="@string/content_description_switch_camera"
|
android:visibility="@{data.micMuted ? View.VISIBLE : View.GONE, default=gone}"
|
||||||
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintLeft_toLeftOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"/>
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:layout_height="@dimen/voip_conference_participant_mic_muted_icon_size"
|
|
||||||
android:layout_width="@dimen/voip_conference_participant_mic_muted_icon_size"
|
|
||||||
android:visibility="@{data.micMuted ? View.VISIBLE : View.GONE, default=gone}"
|
|
||||||
android:background="@drawable/shape_button_disabled_background"
|
|
||||||
android:src="@drawable/icon_mic_muted"
|
|
||||||
android:padding="5dp"
|
|
||||||
android:layout_margin="5dp"
|
|
||||||
android:contentDescription="@string/content_description_conference_participant_mic_muted"
|
|
||||||
app:layout_constraintLeft_toLeftOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"/>
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue