linphone-android/app/src/main/res/layout/call_conference.xml
Sylvain Berfini b803ae9a61 Changes to reflect new conference API
Should fix various conference UI issues

More UI fixes related to conference

Fixes & improvements

Fixed remove participant button invisible in dark mode

API changes

Handle conference enter and leave

Fixed conference UI issues

Small UI improvements

Improve logging

Improved paused conference cell

Use isMe if participant added or removed is focus

Update method names after changes to conference API
2021-04-17 10:05:30 +02:00

89 lines
No EOL
3.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:tools="http://schemas.android.com/tools"
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>