Improved active speaker conference layout a bit

This commit is contained in:
Sylvain Berfini 2024-11-13 13:22:40 +01:00
parent e205d0ef00
commit 40093d77cf
4 changed files with 9 additions and 9 deletions

View file

@ -125,7 +125,7 @@
android:text="@string/conference_active_speaker_is_screen_sharing"
android:textColor="@color/white"
android:textSize="20sp"
android:visibility="@{conferenceViewModel.isScreenSharing ? View.VISIBLE : View.GONE}"
android:visibility="@{conferenceViewModel.isScreenSharing ? View.VISIBLE : View.GONE, default=gone}"
app:layout_constraintBottom_toBottomOf="@id/active_speaker_name"
app:layout_constraintTop_toTopOf="@id/active_speaker_name"
app:layout_constraintStart_toEndOf="@id/active_speaker_name" />
@ -140,7 +140,7 @@
android:src="@drawable/microphone_slash"
android:contentDescription="@string/content_description_conference_participant_muted"
android:background="@drawable/shape_circle_white_call_background"
android:visibility="@{conferenceViewModel.activeSpeaker.isMuted ? View.VISIBLE : View.GONE}"
android:visibility="@{conferenceViewModel.activeSpeaker.isMuted ? View.VISIBLE : View.GONE, default=gone}"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintEnd_toStartOf="@id/active_speaker_miniatures_vertical_layout" />
@ -155,7 +155,7 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginStart="5dp"
android:orientation="vertical"
entries="@{conferenceViewModel.participantDevices}"
layout="@{@layout/call_conference_active_speaker_cell}"/>

View file

@ -14,7 +14,7 @@
android:layout_width="@dimen/call_conference_active_speaker_miniature_size"
android:layout_height="@dimen/call_conference_active_speaker_miniature_size"
android:visibility="@{model.isActiveSpeaker &amp;&amp; !model.isScreenSharing ? View.GONE : View.VISIBLE}"
android:padding="2dp">
android:padding="6dp">
<ImageView
android:id="@+id/participant_device_background"

View file

@ -124,7 +124,7 @@
android:text="@string/conference_active_speaker_is_screen_sharing"
android:textColor="@color/white"
android:textSize="20sp"
android:visibility="@{conferenceViewModel.isScreenSharing ? View.VISIBLE : View.GONE}"
android:visibility="@{conferenceViewModel.isScreenSharing ? View.VISIBLE : View.GONE, default=gone}"
app:layout_constraintBottom_toBottomOf="@id/active_speaker_name"
app:layout_constraintTop_toTopOf="@id/active_speaker_name"
app:layout_constraintStart_toEndOf="@id/active_speaker_name" />
@ -139,7 +139,7 @@
android:src="@drawable/microphone_slash"
android:contentDescription="@string/content_description_conference_participant_muted"
android:background="@drawable/shape_circle_white_call_background"
android:visibility="@{conferenceViewModel.activeSpeaker.isMuted ? View.VISIBLE : View.GONE}"
android:visibility="@{conferenceViewModel.activeSpeaker.isMuted ? View.VISIBLE : View.GONE, default=gone}"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
@ -154,7 +154,7 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginTop="5dp"
android:orientation="horizontal"
entries="@{conferenceViewModel.participantDevices}"
layout="@{@layout/call_conference_active_speaker_cell}"/>

View file

@ -61,7 +61,7 @@
<dimen name="call_remote_video_top_margin">70dp</dimen> <!-- Size of top text + top & bottom margins -->
<dimen name="call_main_actions_menu_height">110dp</dimen>
<dimen name="call_all_actions_menu_height">345dp</dimen> <!-- sum of above two -->
<dimen name="call_main_actions_menu_margin">120dp</dimen>
<dimen name="call_main_actions_menu_margin">115dp</dimen>
<dimen name="call_round_corners_texture_view_radius">20dp</dimen>
<dimen name="call_pip_round_corners_texture_view_radius">5dp</dimen>
<dimen name="call_button_size">55dp</dimen>
@ -72,7 +72,7 @@
<dimen name="call_video_preview_pip_max_size">45dp</dimen>
<dimen name="call_conference_audio_only_miniature_height">100dp</dimen>
<dimen name="call_conference_active_speaker_miniature_size">120dp</dimen>
<dimen name="call_conference_active_speaker_miniature_size">124dp</dimen>
<dimen name="meeting_list_decoration_height">66dp</dimen>
<dimen name="meeting_margin">8dp</dimen>