Conference layouts improvements
This commit is contained in:
parent
0dd411330c
commit
e16cb01b31
8 changed files with 43 additions and 39 deletions
|
@ -18,7 +18,8 @@
|
|||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:visibility="@{inflatedVisibility}">
|
||||
android:visibility="@{inflatedVisibility}"
|
||||
android:layout_margin="@{controlsViewModel.fullScreenMode || controlsViewModel.pipMode ? @dimen/voip_remote_margin_full_screen : @dimen/voip_remote_margin, default=@dimen/voip_remote_margin}">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:visibility="@{inflatedVisibility}">
|
||||
android:visibility="@{inflatedVisibility}"
|
||||
android:layout_margin="@{controlsViewModel.fullScreenMode || controlsViewModel.pipMode ? @dimen/voip_remote_margin_full_screen : @dimen/voip_remote_margin, default=@dimen/voip_remote_margin}">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/header"
|
||||
|
|
|
@ -19,7 +19,8 @@
|
|||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:visibility="@{inflatedVisibility}">
|
||||
android:visibility="@{inflatedVisibility}"
|
||||
android:layout_margin="@{controlsViewModel.fullScreenMode || controlsViewModel.pipMode ? @dimen/voip_remote_margin_full_screen : @dimen/voip_remote_margin, default=@dimen/voip_remote_margin}">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/header"
|
||||
|
|
|
@ -31,45 +31,42 @@
|
|||
android:layout_height="match_parent"
|
||||
android:background="@{controlsViewModel.fullScreenMode ? @color/black_color : @color/transparent_color}">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
<ViewStub
|
||||
android:id="@+id/stubbed_conference_active_speaker_layout"
|
||||
android:inflatedId="@+id/conference_active_speaker_layout"
|
||||
android:layout="@layout/voip_conference_active_speaker"
|
||||
android:visibility="@{conferenceViewModel.conferenceActiveSpeakerDisplayMode ? View.VISIBLE : View.GONE, default=gone}"
|
||||
app:inflatedVisibility="@{conferenceViewModel.conferenceActiveSpeakerDisplayMode ? View.VISIBLE : View.GONE}"
|
||||
android:layout_width="match_parent"
|
||||
app:conferenceViewModel="@{conferenceViewModel}"
|
||||
app:controlsViewModel="@{controlsViewModel}"
|
||||
android:layout_height="0dp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@id/primary_buttons"
|
||||
android:layout_margin="@{controlsViewModel.fullScreenMode || controlsViewModel.pipMode ? @dimen/voip_remote_margin_full_screen : @dimen/voip_remote_margin, default=@dimen/voip_remote_margin}">
|
||||
app:layout_constraintBottom_toTopOf="@id/primary_buttons" />
|
||||
|
||||
<ViewStub
|
||||
android:id="@+id/stubbed_conference_active_speaker_layout"
|
||||
android:inflatedId="@+id/conference_active_speaker_layout"
|
||||
android:layout="@layout/voip_conference_active_speaker"
|
||||
android:visibility="@{conferenceViewModel.conferenceActiveSpeakerDisplayMode ? View.VISIBLE : View.GONE, default=gone}"
|
||||
app:inflatedVisibility="@{conferenceViewModel.conferenceActiveSpeakerDisplayMode ? View.VISIBLE : View.GONE}"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:conferenceViewModel="@{conferenceViewModel}"
|
||||
app:controlsViewModel="@{controlsViewModel}"/>
|
||||
<ViewStub
|
||||
android:id="@+id/stubbed_conference_grid_layout"
|
||||
android:layout="@layout/voip_conference_grid"
|
||||
android:visibility="@{conferenceViewModel.conferenceMosaicDisplayMode ? View.VISIBLE : View.GONE, default=gone}"
|
||||
app:inflatedVisibility="@{conferenceViewModel.conferenceMosaicDisplayMode ? View.VISIBLE : View.GONE}"
|
||||
android:layout_width="match_parent"
|
||||
app:conferenceViewModel="@{conferenceViewModel}"
|
||||
app:controlsViewModel="@{controlsViewModel}"
|
||||
android:layout_height="0dp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@id/primary_buttons" />
|
||||
|
||||
<ViewStub
|
||||
android:id="@+id/stubbed_conference_grid_layout"
|
||||
android:layout="@layout/voip_conference_grid"
|
||||
android:visibility="@{conferenceViewModel.conferenceMosaicDisplayMode ? View.VISIBLE : View.GONE, default=gone}"
|
||||
app:inflatedVisibility="@{conferenceViewModel.conferenceMosaicDisplayMode ? View.VISIBLE : View.GONE}"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:conferenceViewModel="@{conferenceViewModel}"
|
||||
app:controlsViewModel="@{controlsViewModel}"/>
|
||||
|
||||
<ViewStub
|
||||
android:id="@+id/stubbed_conference_audio_only_layout"
|
||||
android:layout="@layout/voip_conference_audio_only"
|
||||
android:visibility="@{conferenceViewModel.conferenceAudioOnlyDisplayMode ? View.VISIBLE : View.GONE, default=gone}"
|
||||
app:inflatedVisibility="@{conferenceViewModel.conferenceAudioOnlyDisplayMode ? View.VISIBLE : View.GONE}"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:conferenceViewModel="@{conferenceViewModel}"
|
||||
app:controlsViewModel="@{controlsViewModel}"/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<ViewStub
|
||||
android:id="@+id/stubbed_conference_audio_only_layout"
|
||||
android:layout="@layout/voip_conference_audio_only"
|
||||
android:visibility="@{conferenceViewModel.conferenceAudioOnlyDisplayMode ? View.VISIBLE : View.GONE, default=gone}"
|
||||
app:inflatedVisibility="@{conferenceViewModel.conferenceAudioOnlyDisplayMode ? View.VISIBLE : View.GONE}"
|
||||
android:layout_width="match_parent"
|
||||
app:conferenceViewModel="@{conferenceViewModel}"
|
||||
app:controlsViewModel="@{controlsViewModel}"
|
||||
android:layout_height="0dp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@id/primary_buttons" />
|
||||
|
||||
<ViewStub
|
||||
android:id="@+id/stubbed_audio_routes"
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:visibility="@{inflatedVisibility}">
|
||||
android:visibility="@{inflatedVisibility}"
|
||||
android:layout_margin="@{controlsViewModel.fullScreenMode || controlsViewModel.pipMode ? @dimen/voip_remote_margin_full_screen : @dimen/voip_remote_margin, default=@dimen/voip_remote_margin}">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -58,6 +58,7 @@
|
|||
android:layout_height="@dimen/voip_conference_active_speaker_miniature_avatar_size"
|
||||
android:src="@drawable/icon_pause"
|
||||
android:background="@drawable/shape_button_background"
|
||||
android:contentDescription="@string/content_description_participant_is_paused"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
@ -57,10 +57,11 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/icon_pause"
|
||||
android:background="@drawable/shape_button_background"
|
||||
android:contentDescription="@string/content_description_participant_is_paused"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
app:layout_constraintEnd_toEndOf="parent"/>
|
||||
|
||||
<ImageView
|
||||
android:visibility="@{data.activeSpeaker ? View.VISIBLE : View.GONE, default=gone}"
|
||||
|
|
|
@ -844,4 +844,5 @@
|
|||
<string name="content_description_go_to_chat_rooms_list">Go to conversations list</string>
|
||||
<string name="content_description_conference_participant_mic_muted">Participant has it\'s microphone muted</string>
|
||||
<string name="content_description_toggle_layout_menu">Show or hide conference layout menu</string>
|
||||
<string name="content_description_participant_is_paused">Participant has momentarily left the conference</string>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in a new issue