linphone-android/app/src/main/res/layout/call_conference.xml
Sylvain Berfini 5d2621af03 Code cleanup
2021-04-23 11:08:44 +02:00

89 lines
No EOL
3.5 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="controlsViewModel"
type="org.linphone.activities.call.viewmodels.ControlsViewModel" />
<variable
name="conferenceViewModel"
type="org.linphone.activities.call.viewmodels.ConferenceViewModel" />
</data>
<LinearLayout
android:visibility="@{!conferenceViewModel.isInConference || conferenceViewModel.isConferencePaused ? View.GONE : View.VISIBLE}"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/backgroundColor"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="60dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:paddingLeft="10dp"
android:textColor="?attr/primaryTextColor"
android:textSize="30sp"
android:text="@string/call_conference_title" />
<ImageView
android:onClick="@{() -> controlsViewModel.switchCamera()}"
android:visibility="@{controlsViewModel.isVideoEnabled ? View.VISIBLE : View.GONE}"
android:contentDescription="@string/content_description_switch_camera"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginRight="10dp"
android:layout_toLeftOf="@id/pause_conference"
android:layout_centerVertical="true"
android:adjustViewBounds="true"
android:padding="10dp"
android:scaleType="fitCenter"
android:background="@drawable/round_button_background"
android:src="@drawable/camera_switch" />
<ImageView
android:id="@+id/pause_conference"
android:onClick="@{() -> conferenceViewModel.pauseConference()}"
android:contentDescription="@string/content_description_pause_conference"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginRight="10dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:adjustViewBounds="true"
android:padding="10dp"
android:scaleType="fitCenter"
android:background="@drawable/round_button_background"
android:src="@drawable/call_pause" />
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/dividerColor" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
app:entries="@{conferenceViewModel.conferenceParticipants}"
app:layout="@{@layout/call_conference_cell}"/>
</ScrollView>
</LinearLayout>
</layout>