mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-04-23 11:08:24 +00:00
127 lines
No EOL
5.4 KiB
XML
127 lines
No EOL
5.4 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="newConferenceClickListener"
|
|
type="android.view.View.OnClickListener"/>
|
|
<variable
|
|
name="viewModel"
|
|
type="org.linphone.activities.main.conference.viewmodels.ScheduledConferencesViewModel" />
|
|
</data>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:background="?attr/voipBackgroundBWColor">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/top_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/main_activity_top_bar_size"
|
|
android:layout_gravity="center_horizontal"
|
|
android:background="?attr/voipToolbarBackgroundColor"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/back"
|
|
android:contentDescription="@string/content_description_go_back"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.2"
|
|
android:padding="18dp"
|
|
android:src="@drawable/back" />
|
|
|
|
<TextView
|
|
style="@style/accent_colored_title_font"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.6"
|
|
android:gravity="center"
|
|
android:singleLine="true"
|
|
android:ellipsize="end"
|
|
android:padding="15dp"
|
|
android:text="@string/conference_scheduled"/>
|
|
|
|
<ImageView
|
|
android:onClick="@{newConferenceClickListener}"
|
|
android:contentDescription="@string/content_description_create_conference"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.2"
|
|
android:padding="5dp"
|
|
android:src="@drawable/icon_video_conf_new" />
|
|
|
|
</LinearLayout>
|
|
|
|
<androidx.fragment.app.FragmentContainerView
|
|
android:id="@+id/list_edit_top_bar_fragment"
|
|
android:name="org.linphone.activities.main.fragments.ListTopBarFragment"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/main_activity_top_bar_size"
|
|
android:layout_alignTop="@id/top_bar"
|
|
tools:layout="@layout/list_edit_top_bar_fragment" />
|
|
|
|
<com.google.android.material.chip.ChipGroup
|
|
android:id="@+id/chips"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/top_bar"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_marginEnd="10dp">
|
|
|
|
<com.google.android.material.chip.Chip
|
|
style="@style/Widget.MaterialComponents.Chip.Choice"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:onCheckedChanged="@{() -> viewModel.applyFilter()}"
|
|
android:checked="@={viewModel.showTerminated, default=false}"
|
|
android:text="@string/conference_scheduled_terminated_filter" />
|
|
|
|
<com.google.android.material.chip.Chip
|
|
style="@style/Widget.MaterialComponents.Chip.Choice"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:onCheckedChanged="@{() -> viewModel.applyFilter()}"
|
|
android:checked="@={!viewModel.showTerminated, default=true}"
|
|
android:text="@string/conference_scheduled_future_filter" />
|
|
|
|
</com.google.android.material.chip.ChipGroup>
|
|
|
|
<View
|
|
android:id="@+id/divider"
|
|
android:layout_below="@id/chips"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="1dp"
|
|
android:background="?attr/dividerColor" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/conference_info_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginBottom="10dp"
|
|
android:layout_below="@id/divider" />
|
|
|
|
<TextView
|
|
style="@style/empty_list_font"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:gravity="center"
|
|
android:text="@string/conference_no_schedule"
|
|
android:visibility="@{!viewModel.showTerminated && viewModel.conferences.empty ? View.VISIBLE : View.GONE}" />
|
|
|
|
<TextView
|
|
style="@style/empty_list_font"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:gravity="center"
|
|
android:text="@string/conference_no_terminated_schedule"
|
|
android:visibility="@{viewModel.showTerminated && viewModel.conferences.empty ? View.VISIBLE : View.GONE, default=gone}" />
|
|
</RelativeLayout>
|
|
|
|
</layout> |