mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-04-21 12:08:29 +00:00
135 lines
No EOL
6.6 KiB
XML
135 lines
No EOL
6.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
<data>
|
|
|
|
<import type="android.view.View" />
|
|
|
|
<variable
|
|
name="conferenceViewModel"
|
|
type="org.linphone.activities.voip.viewmodels.ConferenceViewModel" />
|
|
|
|
<variable
|
|
name="controlsViewModel"
|
|
type="org.linphone.activities.voip.viewmodels.ControlsViewModel" />
|
|
|
|
<variable
|
|
name="inflatedVisibility"
|
|
type="Integer" />
|
|
</data>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/conference_constraint_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_margin="@{controlsViewModel.fullScreenMode || controlsViewModel.pipMode ? @dimen/margin_0dp : @dimen/voip_remote_margin, default=@dimen/voip_remote_margin}"
|
|
android:paddingBottom="@{controlsViewModel.fullScreenMode || controlsViewModel.pipMode ? @dimen/margin_0dp : @dimen/voip_buttons_fragment_margin_size}"
|
|
android:visibility="@{inflatedVisibility}">
|
|
|
|
<View
|
|
android:id="@+id/top_barrier"
|
|
android:layout_width="0dp"
|
|
android:layout_height="1dp"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:layout_marginTop="@{controlsViewModel.fullScreenMode || controlsViewModel.pipMode || controlsViewModel.folded ? @dimen/margin_0dp : conferenceViewModel.isRemotelyRecorded ? @dimen/voip_single_call_header_size_with_record_info : @dimen/voip_single_call_header_size, default=@dimen/voip_single_call_header_size}"/>
|
|
|
|
<androidx.constraintlayout.widget.Guideline
|
|
android:id="@+id/hinge_top"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintGuide_percent="0" />
|
|
|
|
<androidx.constraintlayout.widget.Guideline
|
|
android:id="@+id/hinge_bottom"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintGuide_percent="1" />
|
|
|
|
<androidx.constraintlayout.widget.Group
|
|
android:id="@+id/group"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="@{controlsViewModel.fullScreenMode || controlsViewModel.pipMode ? View.GONE : View.VISIBLE}"
|
|
app:constraint_referenced_ids="remote_name,active_conference_timer,toggle_conference_recording,toggle_pause_conference" />
|
|
|
|
<TextView
|
|
android:id="@+id/remote_name"
|
|
style="@style/call_header_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@{controlsViewModel.folded ? @dimen/voip_conference_header_folded_top_margin : @dimen/margin_0dp}"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:text="@{conferenceViewModel.subject, default=@string/conference_default_title}"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/hinge_top" />
|
|
|
|
<Chronometer
|
|
android:id="@+id/active_conference_timer"
|
|
style="@style/call_header_subtitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/remote_name" />
|
|
|
|
<ImageView
|
|
android:id="@+id/toggle_pause_conference"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:background="@drawable/button_toggle_background"
|
|
android:contentDescription="@string/content_description_pause_call"
|
|
android:enabled="@{!conferenceViewModel.conferenceCreationPending}"
|
|
android:onClick="@{() -> conferenceViewModel.pauseConference()}"
|
|
android:padding="5dp"
|
|
android:selected="@{conferenceViewModel.isConferenceLocallyPaused}"
|
|
android:src="@drawable/icon_pause"
|
|
app:layout_constraintBottom_toBottomOf="@id/active_conference_timer"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="@id/remote_name" />
|
|
|
|
<ImageView
|
|
android:id="@+id/toggle_conference_recording"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_marginEnd="10dp"
|
|
android:background="@drawable/button_toggle_background"
|
|
android:contentDescription="@string/content_description_toggle_recording"
|
|
android:onClick="@{() -> conferenceViewModel.toggleRecording()}"
|
|
android:padding="7dp"
|
|
android:selected="@{conferenceViewModel.isRecording}"
|
|
android:src="@drawable/icon_call_record"
|
|
app:layout_constraintBottom_toBottomOf="@id/active_conference_timer"
|
|
app:layout_constraintEnd_toStartOf="@id/toggle_pause_conference"
|
|
app:layout_constraintTop_toTopOf="@id/remote_name" />
|
|
|
|
<include
|
|
android:id="@+id/remote_recording"
|
|
layout="@layout/voip_remote_recording"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintTop_toBottomOf="@id/active_conference_timer"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:visibility="@{conferenceViewModel.isRemotelyRecorded ? View.VISIBLE : View.GONE, default=gone}" />
|
|
|
|
<org.linphone.activities.voip.views.GridBoxLayout
|
|
android:id="@+id/grid_box_layout"
|
|
centerContent="@{true}"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
app:layout_constraintTop_toBottomOf="@id/top_barrier"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintBottom_toTopOf="@id/hinge_bottom"
|
|
android:onClick="@{() -> controlsViewModel.toggleFullScreen()}"
|
|
app:entries="@{conferenceViewModel.conferenceParticipantDevices}"
|
|
app:layout="@{@layout/voip_conference_participant_remote_grid}" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</layout> |