linphone-android/app/src/main/res/layout/call_activity.xml

85 lines
No EOL
3.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<data>
<import type="android.view.View" />
<variable
name="previewTouchListener"
type="android.view.View.OnTouchListener" />
<variable
name="viewModel"
type="org.linphone.activities.call.viewmodels.ControlsFadingViewModel" />
</data>
<androidx.drawerlayout.widget.DrawerLayout
android:id="@+id/stats_menu"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/backgroundColor">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextureView
android:onClick="@{() -> viewModel.showMomentarily()}"
android:id="@+id/remote_video_surface"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<org.linphone.mediastream.video.capture.CaptureTextureView
android:onTouch="@{previewTouchListener}"
android:visibility="@{viewModel.isVideoPreviewHidden ? View.INVISIBLE : View.VISIBLE, default=visible}"
android:id="@+id/local_preview_video_surface"
android:layout_size="@{viewModel.isVideoPreviewResizedForPip ? @dimen/video_preview_pip_max_size : @dimen/video_preview_max_size}"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true" />
<RelativeLayout
android:visibility="@{viewModel.areControlsHidden ? View.GONE : View.VISIBLE, default=visible}"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.fragment.app.FragmentContainerView
android:id="@+id/status_fragment"
android:name="org.linphone.activities.call.fragments.StatusFragment"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_alignParentTop="true"
tools:layout="@layout/call_status_fragment" />
<androidx.fragment.app.FragmentContainerView
android:id="@+id/call_fragment"
android:name="org.linphone.activities.call.fragments.ControlsFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/status_fragment"
tools:layout="@layout/call_controls_fragment" />
</RelativeLayout>
</RelativeLayout>
<!-- Side Menu -->
<RelativeLayout
android:id="@+id/side_menu_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="40dp"
android:layout_gravity="left">
<androidx.fragment.app.FragmentContainerView
android:id="@+id/stats_fragment"
android:name="org.linphone.activities.call.fragments.StatisticsFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:layout="@layout/call_statistics_fragment" />
</RelativeLayout>
</androidx.drawerlayout.widget.DrawerLayout>
</layout>